Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008129/0.000813, allocations: 92.58 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008563/0.0008564, allocations: 176.5 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.135/1.135, allocations: 223.3 MB / 242.3 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002072/0.0002071, allocations: 7.938 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07105, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.009497/0.08057, allocations: 10.81 MB / 363.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005157/0.08575, allocations: 3.642 MB / 367 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005298/0.08629, allocations: 59.69 kB / 367 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.0875, allocations: 0.7187 MB / 367.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001439/0.08895, allocations: 0.8392 MB / 368.6 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006381/0.0896, allocations: 434.8 kB / 369 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1272/0.2168, allocations: 3.761 MB / 372.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002617/0.2195, allocations: 2.176 MB / 374.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001529/0.221, allocations: 1.107 MB / 376 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.2232, allocations: 1.521 MB / 377.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005691/0.2238, allocations: 161.4 kB / 377.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009798/0.2248, allocations: 262.3 kB / 378 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009244/0.2257, allocations: 0.8133 MB / 378.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002042/0.2277, allocations: 1.479 MB / 380.3 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003012/0.2308, allocations: 4.111 MB / 384.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2308, allocations: 0 / 384.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2308, allocations: 0.9688 kB / 384.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.175e-05/0.2308, allocations: 4 kB / 384.4 MB, free: 8.637 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.004285/0.2351, allocations: 2.939 MB / 387.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.2352, allocations: 10.75 kB / 387.3 MB, free: 6.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006261/0.2358, allocations: 357.8 kB / 387.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.2379, allocations: 1.834 MB / 389.5 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001089/0.2381, allocations: 191.9 kB / 389.7 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003166/0.2384, allocations: 253.7 kB / 389.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004112/0.2425, allocations: 3.431 MB / 393.4 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.303e-05/0.2426, allocations: 9.625 kB / 393.4 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000202/0.2428, allocations: 100.1 kB / 393.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.667e-05/0.2429, allocations: 118.3 kB / 393.6 MB, free: 3.809 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003445/0.2463, allocations: 2.94 MB / 396.5 MB, free: 2.293 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01197/0.2583, allocations: 10.93 MB / 407.5 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.2608, allocations: 2.442 MB / 409.9 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/0.2625, allocations: 1.184 MB / 411.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002094/0.2627, allocations: 129.2 kB / 411.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.2627, allocations: 52.81 kB / 411.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 2.294e-06/0.2627, allocations: 0 / 411.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01265/0.2754, allocations: 7.312 MB / 418.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.2755, allocations: 90.42 kB / 418.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002129/0.2776, allocations: 1.827 MB / 420.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.105e-05/0.2777, allocations: 49.7 kB / 420.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007397/0.2784, allocations: 1.218 MB / 421.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003331/0.2788, allocations: 0.4899 MB / 422.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001861/0.279, allocations: 145.6 kB / 422.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.76e-05/0.2791, allocations: 301.1 kB / 422.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001157/0.2802, allocations: 0.8549 MB / 423.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.2817, allocations: 1.325 MB / 424.9 MB, free: 7.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.2843, allocations: 2.266 MB / 427.1 MB, free: 4.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.2843, allocations: 4 kB / 427.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003916/0.2883, allocations: 2.864 MB / 430 MB, free: 1.938 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002685/0.2885, allocations: 0.5006 MB / 430.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.2886, allocations: 16 kB / 430.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00131/0.2899, allocations: 0.6704 MB / 431.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.291, allocations: 357.2 kB / 431.5 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007865/0.2988, allocations: 8.303 MB / 439.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001/0.2999, allocations: 115.8 kB / 440 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.3, allocations: 71.98 kB / 440 MB, free: 7.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.22e-06/0.3, allocations: 8.062 kB / 440 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003589/0.3036, allocations: 2.643 MB / 442.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.425e-05/0.3036, allocations: 16 kB / 442.7 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.3049, allocations: 0.6662 MB / 443.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.306, allocations: 358.9 kB / 443.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007721/0.3137, allocations: 8.293 MB / 452 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009108/0.3146, allocations: 108 kB / 452.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/0.3147, allocations: 71.98 kB / 452.2 MB, free: 10.95 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_n.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (181): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,9,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001211/0.316, allocations: 0.922 MB / 453.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/0.3162, allocations: 205.6 kB / 453.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003785/0.32, allocations: 2.568 MB / 455.9 MB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/0.3201, allocations: 16 kB / 455.9 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3201, allocations: 4 kB / 455.9 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/0.3201, allocations: 7.969 kB / 455.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007167/0.3273, allocations: 5.447 MB / 461.3 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.3273, allocations: 0 / 461.3 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008214/0.3281, allocations: 222.4 kB / 461.6 MB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.3295, allocations: 0.6994 MB / 462.3 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.898e-05/0.3296, allocations: 28.19 kB / 462.3 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008773/0.3384, allocations: 9.791 MB / 472.1 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3384, allocations: 0 / 472.1 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004754/0.3432, allocations: 3.764 MB / 475.8 MB, free: 2.699 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006248/0.3438, allocations: 473.9 kB / 476.3 MB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.344, allocations: 28 kB / 476.3 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008878/0.3449, allocations: 108.1 kB / 476.4 MB, free: 2.086 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.3452, allocations: 113.1 kB / 476.6 MB, free: 1.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.651e-05/0.3452, allocations: 40 kB / 476.6 MB, free: 1.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001489/0.3467, allocations: 1.26 MB / 477.8 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3467, allocations: 3.188 kB / 477.9 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002392/0.3491, allocations: 0.9974 MB / 478.8 MB, free: 15.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,20)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003166/0.3495, allocations: 200.1 kB / 479 MB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005217/0.3547, allocations: 4.507 MB / 483.6 MB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3547, allocations: 0 / 483.6 MB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002004/0.3567, allocations: 1.735 MB / 485.3 MB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/0.3594, allocations: 0.5833 MB / 485.9 MB, free: 8.633 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007743/0.3671, allocations: 6.773 MB / 492.6 MB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001561/0.3687, allocations: 2.079 MB / 494.7 MB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/0.3691, allocations: 143.4 kB / 494.9 MB, free: 15.56 MB / 414.1 MB Notification: Performance of SimCode: time 1.763e-06/0.3691, allocations: 0 / 494.9 MB, free: 15.56 MB / 414.1 MB Notification: Performance of Templates: time 0.1836/0.5527, allocations: 86.39 MB / 0.5676 GB, free: 128.5 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Braking/SMPM_Braking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches