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.001208/0.001208, allocations: 112 kB / 17.68 MB, free: 5.332 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.001264/0.001264, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 38.04 MB / 330.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.95 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1146, allocations: 58.06 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.009322/0.124, allocations: 7.411 MB / 465.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007806/0.1319, allocations: 5.246 MB / 471 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000623/0.1325, allocations: 35.81 kB / 471 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01026/0.1428, allocations: 5.731 MB / 476.7 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.1445, allocations: 0.6922 MB / 477.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.1458, allocations: 0.5108 MB / 477.9 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003255/0.1491, allocations: 2.628 MB / 480.6 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001454/0.1505, allocations: 1.345 MB / 481.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009759/0.1515, allocations: 0.7826 MB / 482.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.1525, allocations: 0.9267 MB / 483.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001844/0.1527, allocations: 144 kB / 483.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.1538, allocations: 0.6632 MB / 484.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005967/0.1544, allocations: 0.6547 MB / 485.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008007/0.1552, allocations: 0.7544 MB / 485.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00225/0.1575, allocations: 2.201 MB / 488 MB, free: 9.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1575, allocations: 0 / 488 MB, free: 9.484 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.1575, allocations: 3.984 kB / 488 MB, free: 9.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.1575, allocations: 4 kB / 488 MB, free: 9.477 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.003737/0.1613, allocations: 1.948 MB / 490 MB, free: 7.445 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1613, allocations: 11.89 kB / 490 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006481/0.162, allocations: 183.2 kB / 490.2 MB, free: 7.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.1641, allocations: 1.05 MB / 491.2 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.1642, allocations: 175.1 kB / 491.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.1645, allocations: 112 kB / 491.5 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003032/0.1675, allocations: 1.859 MB / 493.4 MB, free: 3.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.502e-05/0.1676, allocations: 7.906 kB / 493.4 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001164/0.1677, allocations: 36 kB / 493.4 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002953/0.168, allocations: 129.9 kB / 493.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.1709, allocations: 1.616 MB / 495.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009106/0.1801, allocations: 5.712 MB / 0.4891 GB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.1825, allocations: 1.203 MB / 0.4903 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.1839, allocations: 0.7425 MB / 0.491 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.312e-05/0.184, allocations: 9 kB / 0.491 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001709/0.1857, allocations: 0.9844 MB / 0.492 GB, free: 9.254 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 2.915e-06/0.1857, allocations: 0 / 0.492 GB, free: 9.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.009277/0.195, allocations: 4.668 MB / 0.4966 GB, free: 4.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.218e-05/0.1951, allocations: 131.8 kB / 0.4967 GB, free: 4.305 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000966/0.1961, allocations: 0.7781 MB / 0.4974 GB, free: 3.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.606e-05/0.1962, allocations: 57.69 kB / 0.4975 GB, free: 3.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003833/0.1966, allocations: 0.5076 MB / 0.498 GB, free: 2.938 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003102/0.1969, allocations: 410.3 kB / 0.4984 GB, free: 2.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003756/0.1973, allocations: 246.7 kB / 0.4986 GB, free: 2.285 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1975, allocations: 422.7 kB / 0.499 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009786/0.1985, allocations: 0.6864 MB / 0.4997 GB, free: 1.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.1996, allocations: 0.9686 MB / 0.5006 GB, free: 112 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1801/0.3798, allocations: 1.678 MB / 0.5023 GB, free: 56.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.3798, allocations: 4.062 kB / 0.5023 GB, free: 56.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.00386/0.3837, allocations: 2.32 MB / 0.5046 GB, free: 55.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.467e-05/0.3838, allocations: 59.89 kB / 0.5046 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.3838, allocations: 6.75 kB / 0.5046 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001305/0.3851, allocations: 425.6 kB / 0.505 GB, free: 55.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008709/0.386, allocations: 214.3 kB / 0.5052 GB, free: 55.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007569/0.3936, allocations: 6.232 MB / 0.5113 GB, free: 50.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.3948, allocations: 96.3 kB / 0.5114 GB, free: 50.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001614/0.3949, allocations: 93.36 kB / 0.5115 GB, free: 50.82 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.0007214/0.3957, allocations: 455.4 kB / 0.5119 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.3959, allocations: 106.6 kB / 0.512 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/0.3999, allocations: 1.962 MB / 0.5139 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.568e-05/0.3999, allocations: 29.66 kB / 0.514 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3999, allocations: 2.969 kB / 0.514 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.3999, allocations: 5.875 kB / 0.514 GB, free: 49.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006011/0.406, allocations: 3.415 MB / 0.5173 GB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.406, allocations: 1.062 kB / 0.5173 GB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009502/0.4069, allocations: 181.1 kB / 0.5175 GB, free: 48.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004968/0.4074, allocations: 158.5 kB / 0.5176 GB, free: 48.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001002/0.4076, allocations: 41.66 kB / 0.5177 GB, free: 48.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003011/0.4106, allocations: 4.805 MB / 0.5224 GB, free: 43.74 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4106, allocations: 1.156 kB / 0.5224 GB, free: 43.74 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004669/0.4153, allocations: 2.886 MB / 0.5252 GB, free: 42.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006627/0.4159, allocations: 305.8 kB / 0.5255 GB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.4162, allocations: 89.08 kB / 0.5256 GB, free: 42.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000895/0.4171, allocations: 107.5 kB / 0.5257 GB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.4173, allocations: 87.08 kB / 0.5258 GB, free: 42.28 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-05/0.4174, allocations: 45.09 kB / 0.5258 GB, free: 42.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006887/0.4181, allocations: 0.5354 MB / 0.5263 GB, free: 42.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4181, allocations: 0 / 0.5263 GB, free: 42.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001323/0.4195, allocations: 362.4 kB / 0.5267 GB, free: 42 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.001093/0.4206, allocations: 0.5082 MB / 0.5272 GB, free: 41.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003416/0.424, allocations: 2.325 MB / 0.5294 GB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.424, allocations: 0 / 0.5294 GB, free: 40.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.4258, allocations: 1.22 MB / 0.5306 GB, free: 39.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009749/0.4268, allocations: 234.8 kB / 0.5308 GB, free: 39.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00434/0.4312, allocations: 3.412 MB / 0.5342 GB, free: 36.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006018/0.4318, allocations: 1.277 MB / 0.5354 GB, free: 35.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006681/0.4325, allocations: 304.5 kB / 0.5357 GB, free: 34.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.4327, allocations: 83.36 kB / 0.5358 GB, free: 34.89 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4327, allocations: 0 / 0.5358 GB, free: 34.89 MB / 382.1 MB Notification: Performance of Templates: time 0.02322/0.456, allocations: 19.17 MB / 0.5545 GB, free: 15.9 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 -s gbode -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