Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.tau_el|asm.rotor.w|power.i.1.|power.i.2.|power.i.3.|power.p_av.1.|power.p_av.2.|power.p_av.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001897/0.001897, allocations: 111.8 kB / 17.29 MB, free: 6.219 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.002353/0.002352, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.463/2.463, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3905/0.3905, allocations: 38.03 MB / 330.1 MB, free: 9.043 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 65.88 kB / 398.9 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.2001, allocations: 58.07 MB / 457 MB, free: 8.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01819/0.2183, allocations: 8.651 MB / 465.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.2352, allocations: 5.617 MB / 471.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001994/0.2373, allocations: 51.69 kB / 471.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01762/0.2549, allocations: 5.841 MB / 477.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003622/0.2586, allocations: 0.646 MB / 477.8 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.2611, allocations: 479.3 kB / 478.3 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006675/0.2678, allocations: 2.69 MB / 481 MB, free: 388 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003677/0.2715, allocations: 1.384 MB / 482.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002633/0.2742, allocations: 0.7903 MB / 483.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002627/0.2769, allocations: 0.9775 MB / 484.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000731/0.2776, allocations: 144 kB / 484.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002716/0.2804, allocations: 0.7099 MB / 485 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00161/0.282, allocations: 0.6586 MB / 485.6 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002516/0.2846, allocations: 0.7661 MB / 486.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004045/0.2887, allocations: 1.735 MB / 488.1 MB, free: 9.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.2887, allocations: 0 / 488.1 MB, free: 9.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.2887, allocations: 0 / 488.1 MB, free: 9.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.314e-05/0.2888, allocations: 0 / 488.1 MB, free: 9.18 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.009236/0.2981, allocations: 1.948 MB / 490.1 MB, free: 7.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.449e-05/0.2982, allocations: 11.89 kB / 490.1 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001708/0.2999, allocations: 183.2 kB / 490.3 MB, free: 6.957 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004238/0.3042, allocations: 1.014 MB / 491.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003778/0.3046, allocations: 183.1 kB / 491.5 MB, free: 5.703 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000746/0.3054, allocations: 107.9 kB / 491.6 MB, free: 5.598 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007476/0.3129, allocations: 1.863 MB / 493.4 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-05/0.313, allocations: 0 / 493.4 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004188/0.3134, allocations: 51.97 kB / 493.5 MB, free: 3.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005972/0.3141, allocations: 117.9 kB / 493.6 MB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005484/0.3196, allocations: 1.604 MB / 495.2 MB, free: 1.891 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01649/0.3361, allocations: 5.763 MB / 0.4892 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004866/0.341, allocations: 1.199 MB / 0.4904 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003006/0.3441, allocations: 0.7386 MB / 0.4911 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001807/0.3443, allocations: 16.98 kB / 0.4911 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003713/0.3481, allocations: 0.984 MB / 0.4921 GB, free: 8.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 7.364e-06/0.3481, allocations: 4 kB / 0.4921 GB, free: 8.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.01894/0.3671, allocations: 4.664 MB / 0.4967 GB, free: 4.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.3673, allocations: 131.7 kB / 0.4968 GB, free: 3.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002036/0.3694, allocations: 0.782 MB / 0.4976 GB, free: 3.203 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003461/0.3697, allocations: 57.69 kB / 0.4976 GB, free: 3.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.3708, allocations: 0.5114 MB / 0.4981 GB, free: 2.621 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009004/0.3718, allocations: 406.3 kB / 0.4985 GB, free: 2.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009633/0.3728, allocations: 238.8 kB / 0.4987 GB, free: 1.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003667/0.3731, allocations: 422.7 kB / 0.4991 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002201/0.3754, allocations: 0.6903 MB / 0.4998 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3798/0.7552, allocations: 0.9613 MB / 0.5007 GB, free: 57.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006281/0.7615, allocations: 1.685 MB / 0.5024 GB, free: 56.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.773e-05/0.7616, allocations: 3.094 kB / 0.5024 GB, free: 56.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.008987/0.7706, allocations: 2.325 MB / 0.5047 GB, free: 55.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.7708, allocations: 63.33 kB / 0.5047 GB, free: 55.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.226e-05/0.7709, allocations: 10.91 kB / 0.5047 GB, free: 55.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/0.7732, allocations: 420.8 kB / 0.5051 GB, free: 55.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001665/0.7749, allocations: 213.3 kB / 0.5053 GB, free: 55.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01544/0.7904, allocations: 6.231 MB / 0.5114 GB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.7926, allocations: 102 kB / 0.5115 GB, free: 51.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006774/0.7933, allocations: 91.47 kB / 0.5116 GB, free: 51.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.002105/0.7954, allocations: 460.4 kB / 0.512 GB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008765/0.7963, allocations: 108.2 kB / 0.5121 GB, free: 50.86 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008487/0.8048, allocations: 1.956 MB / 0.5141 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.096e-05/0.805, allocations: 29.47 kB / 0.5141 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-05/0.805, allocations: 5.812 kB / 0.5141 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.698e-05/0.805, allocations: 5.797 kB / 0.5141 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.8172, allocations: 3.418 MB / 0.5174 GB, free: 48.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.8173, allocations: 4.875 kB / 0.5174 GB, free: 48.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/0.8188, allocations: 174.5 kB / 0.5176 GB, free: 48.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008305/0.8197, allocations: 158.9 kB / 0.5178 GB, free: 48.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000273/0.82, allocations: 41.05 kB / 0.5178 GB, free: 48.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005058/0.8251, allocations: 4.81 MB / 0.5225 GB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.147e-06/0.8251, allocations: 5.156 kB / 0.5225 GB, free: 44.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009309/0.8345, allocations: 2.882 MB / 0.5253 GB, free: 42.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009633/0.8355, allocations: 311.5 kB / 0.5256 GB, free: 42.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006048/0.8361, allocations: 81.44 kB / 0.5257 GB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.8378, allocations: 118.2 kB / 0.5258 GB, free: 42.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000432/0.8382, allocations: 77.83 kB / 0.5259 GB, free: 42.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/0.8385, allocations: 40.23 kB / 0.5259 GB, free: 42.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001751/0.8402, allocations: 0.5371 MB / 0.5264 GB, free: 42.31 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.8403, allocations: 1.375 kB / 0.5264 GB, free: 42.31 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003615/0.8439, allocations: 365.5 kB / 0.5268 GB, free: 42.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002287/0.8462, allocations: 0.4962 MB / 0.5273 GB, free: 42.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01005/0.8563, allocations: 2.975 MB / 0.5302 GB, free: 40.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/0.8564, allocations: 4.125 kB / 0.5302 GB, free: 40.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004406/0.8608, allocations: 1.226 MB / 0.5314 GB, free: 39.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/0.864, allocations: 241 kB / 0.5316 GB, free: 39.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/0.8758, allocations: 4.013 MB / 0.5355 GB, free: 35.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.8774, allocations: 1.277 MB / 0.5368 GB, free: 34.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/0.8785, allocations: 95.39 kB / 0.5369 GB, free: 34.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.834e-06/0.8786, allocations: 3.938 kB / 0.5369 GB, free: 34.2 MB / 382.1 MB Notification: Performance of Templates: time 0.06118/0.9398, allocations: 29.45 MB / 0.5656 GB, free: 4.781 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches