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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001378/0.001378, allocations: 186.5 kB / 17.27 MB, free: 4.48 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.804/1.804, allocations: 205.1 MB / 223.1 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001007/0.001007, allocations: 103.6 kB / 270.5 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2321/0.2321, allocations: 38 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 47.92 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.36, allocations: 55.24 MB / 477.1 MB, free: 9.898 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01075/0.3708, allocations: 8.654 MB / 485.8 MB, free: 3.777 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.009687/0.3805, allocations: 5.75 MB / 491.5 MB, free: 15.82 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.3823, allocations: 51.78 kB / 491.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01316/0.3955, allocations: 5.687 MB / 497.2 MB, free: 14.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002777/0.3983, allocations: 0.6493 MB / 497.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001691/0.4, allocations: 463.6 kB / 498.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005326/0.4054, allocations: 3.423 MB / 0.49 GB, free: 11.77 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.4074, allocations: 1.144 MB / 0.4911 GB, free: 11.06 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001523/0.4089, allocations: 0.667 MB / 0.4918 GB, free: 10.72 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.4105, allocations: 0.9559 MB / 0.4927 GB, free: 10.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002072/0.4107, allocations: 78.34 kB / 0.4928 GB, free: 10.18 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001433/0.4121, allocations: 0.6523 MB / 0.4934 GB, free: 9.852 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007933/0.4129, allocations: 0.5924 MB / 0.494 GB, free: 9.488 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001682/0.4146, allocations: 0.6886 MB / 0.4947 GB, free: 9.031 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.4173, allocations: 2.125 MB / 0.4967 GB, free: 7.348 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4173, allocations: 4 kB / 0.4967 GB, free: 7.344 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.4173, allocations: 0 / 0.4967 GB, free: 7.344 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.296e-05/0.4174, allocations: 0 / 0.4967 GB, free: 7.344 MB / 330.7 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.004451/0.4218, allocations: 1.952 MB / 0.4987 GB, free: 5.309 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.4219, allocations: 8.031 kB / 0.4987 GB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000666/0.4226, allocations: 191.1 kB / 0.4988 GB, free: 5.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.4246, allocations: 1.007 MB / 0.4998 GB, free: 4.066 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.4248, allocations: 183.1 kB / 0.5 GB, free: 3.867 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/0.425, allocations: 111.9 kB / 0.5001 GB, free: 3.758 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.428, allocations: 1.867 MB / 0.5019 GB, free: 1.816 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.428, allocations: 7.844 kB / 0.5019 GB, free: 1.809 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.4282, allocations: 43.98 kB / 0.502 GB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002775/0.4284, allocations: 125.9 kB / 0.5021 GB, free: 1.645 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002665/0.4311, allocations: 1.6 MB / 0.5037 GB, free: 44 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008534/0.4397, allocations: 5.755 MB / 0.5093 GB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.4422, allocations: 1.192 MB / 0.5104 GB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.4436, allocations: 0.7347 MB / 0.5112 GB, free: 8.145 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.542e-05/0.4437, allocations: 13 kB / 0.5112 GB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00176/0.4455, allocations: 0.9924 MB / 0.5121 GB, free: 7.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=116): time 3.677e-06/0.4455, allocations: 0 / 0.5121 GB, free: 7.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=119): time 0.009612/0.4551, allocations: 4.662 MB / 0.5167 GB, free: 2.328 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.614e-05/0.4552, allocations: 131.7 kB / 0.5168 GB, free: 2.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.4563, allocations: 0.782 MB / 0.5176 GB, free: 1.383 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-05/0.4564, allocations: 57.69 kB / 0.5176 GB, free: 1.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004258/0.4568, allocations: 0.4998 MB / 0.5181 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003349/0.4572, allocations: 406.3 kB / 0.5185 GB, free: 420 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003831/0.4576, allocations: 250.7 kB / 0.5188 GB, free: 164 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.4578, allocations: 422.7 kB / 0.5192 GB, free: 15.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009915/0.4588, allocations: 0.6904 MB / 0.5198 GB, free: 15.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/0.4599, allocations: 0.9686 MB / 0.5208 GB, free: 13.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002101/0.462, allocations: 1.678 MB / 0.5224 GB, free: 12.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.4621, allocations: 4 kB / 0.5224 GB, free: 12.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003928/0.466, allocations: 2.317 MB / 0.5247 GB, free: 9.828 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.4661, allocations: 65.67 kB / 0.5248 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.4662, allocations: 8 kB / 0.5248 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.4675, allocations: 421.5 kB / 0.5252 GB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008263/0.4684, allocations: 211.7 kB / 0.5254 GB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007745/0.4761, allocations: 5.712 MB / 0.5309 GB, free: 3.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.4774, allocations: 99.81 kB / 0.531 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.4776, allocations: 83.88 kB / 0.5311 GB, free: 2.973 MB / 362.7 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.0009077/0.4785, allocations: 465.3 kB / 0.5316 GB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/0.4788, allocations: 106.8 kB / 0.5317 GB, free: 2.402 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003923/0.4827, allocations: 1.958 MB / 0.5336 GB, free: 392 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.4828, allocations: 27.98 kB / 0.5336 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4828, allocations: 0 / 0.5336 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.4828, allocations: 3.984 kB / 0.5336 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006375/0.4892, allocations: 3.423 MB / 0.5369 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4892, allocations: 0 / 0.5369 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009/0.4901, allocations: 175.7 kB / 0.5371 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005093/0.4907, allocations: 170.4 kB / 0.5373 GB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-05/0.4908, allocations: 35.97 kB / 0.5373 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003756/0.4945, allocations: 4.458 MB / 0.5417 GB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4945, allocations: 3.938 kB / 0.5417 GB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02631/0.5209, allocations: 15.93 MB / 0.5572 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008348/0.5217, allocations: 311.6 kB / 0.5575 GB, free: 6.574 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003673/0.5221, allocations: 91.88 kB / 0.5576 GB, free: 6.484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.5233, allocations: 111.8 kB / 0.5577 GB, free: 6.375 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.5236, allocations: 80.83 kB / 0.5578 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/0.5237, allocations: 39.97 kB / 0.5578 GB, free: 6.258 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000878/0.5246, allocations: 0.538 MB / 0.5584 GB, free: 5.719 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5246, allocations: 0 / 0.5584 GB, free: 5.719 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001982/0.5266, allocations: 468.1 kB / 0.5588 GB, free: 5.262 MB / 394.7 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.001272/0.5279, allocations: 0.5544 MB / 0.5593 GB, free: 4.766 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004352/0.5323, allocations: 2.308 MB / 0.5616 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5323, allocations: 0 / 0.5616 GB, free: 2.422 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002434/0.5347, allocations: 1.218 MB / 0.5628 GB, free: 1.164 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.5363, allocations: 227.8 kB / 0.563 GB, free: 0.9414 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009688/0.546, allocations: 5.057 MB / 0.5679 GB, free: 11.78 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/0.5477, allocations: 1.324 MB / 0.5692 GB, free: 10.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001281/0.549, allocations: 308.5 kB / 0.5695 GB, free: 10.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004841/0.5495, allocations: 91.42 kB / 0.5696 GB, free: 10.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5495, allocations: 0 / 0.5696 GB, free: 10.04 MB / 410.7 MB Notification: Performance of Templates: time 0.03972/0.5892, allocations: 21.61 MB / 0.5907 GB, free: 4.391 MB / 426.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches