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.0008166/0.0008166, allocations: 96.55 kB / 16.3 MB, free: 5.656 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.0008114/0.0008114, allocations: 179.9 kB / 17.2 MB, free: 5.59 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.189/1.189, allocations: 223.2 MB / 241.1 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1547/0.1547, allocations: 38.08 MB / 330.3 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003731/0.0003732, allocations: 12 kB / 400 MB, free: 34.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1052, allocations: 59.17 MB / 459.1 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.00768/0.113, allocations: 7.39 MB / 466.5 MB, free: 32 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007269/0.1203, allocations: 5.213 MB / 471.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009052/0.1212, allocations: 51.69 kB / 471.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004692/0.1259, allocations: 1.91 MB / 473.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001673/0.1276, allocations: 0.553 MB / 474.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.1288, allocations: 454.2 kB / 474.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001082/0.1299, allocations: 0.9482 MB / 475.6 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001493/0.1314, allocations: 1.238 MB / 476.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007624/0.1321, allocations: 0.5451 MB / 477.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007469/0.1329, allocations: 0.6387 MB / 478.1 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001179/0.133, allocations: 64 kB / 478.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008449/0.1339, allocations: 0.5187 MB / 478.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000447/0.1343, allocations: 0.53 MB / 479.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002278/0.1346, allocations: 285 kB / 479.5 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.1359, allocations: 1.687 MB / 481.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.1359, allocations: 0 / 481.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1359, allocations: 0 / 481.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1359, allocations: 0 / 481.1 MB, free: 1.324 MB / 350.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.003075/0.139, allocations: 1.691 MB / 482.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.139, allocations: 12.03 kB / 482.8 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005709/0.1396, allocations: 178.2 kB / 483 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/0.1414, allocations: 0.9797 MB / 484 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000164/0.1416, allocations: 187 kB / 484.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001977/0.1418, allocations: 119.9 kB / 484.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/0.1447, allocations: 1.863 MB / 486.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.237e-05/0.1447, allocations: 7.938 kB / 486.2 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.1448, allocations: 39.98 kB / 486.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002773/0.1451, allocations: 129.9 kB / 486.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002588/0.1477, allocations: 1.616 MB / 488 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00804/0.1558, allocations: 5.771 MB / 493.7 MB, free: 4.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.1581, allocations: 1.238 MB / 495 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.027e-05/0.1582, allocations: 17.19 kB / 495 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001687/0.1599, allocations: 1 MB / 496 MB, free: 2.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 2.815e-06/0.1599, allocations: 0 / 496 MB, free: 2.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.009463/0.1693, allocations: 5.224 MB / 0.4895 GB, free: 12.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.1695, allocations: 127.8 kB / 0.4896 GB, free: 12.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008807/0.1703, allocations: 0.7742 MB / 0.4903 GB, free: 11.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.311e-05/0.1704, allocations: 61.69 kB / 0.4904 GB, free: 11.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003361/0.1708, allocations: 0.5075 MB / 0.4909 GB, free: 11.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002739/0.1711, allocations: 402.3 kB / 0.4913 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.1711, allocations: 28 kB / 0.4913 GB, free: 10.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1713, allocations: 426.6 kB / 0.4917 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008643/0.1722, allocations: 0.6708 MB / 0.4924 GB, free: 9.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.1732, allocations: 0.9413 MB / 0.4933 GB, free: 8.512 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001039/0.1742, allocations: 0.8392 MB / 0.4941 GB, free: 7.668 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.1743, allocations: 0 / 0.4941 GB, free: 7.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003452/0.1777, allocations: 2.386 MB / 0.4964 GB, free: 5.227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.324e-05/0.1778, allocations: 65.67 kB / 0.4965 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.1778, allocations: 8 kB / 0.4965 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.179, allocations: 447.2 kB / 0.4969 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007306/0.1798, allocations: 203.7 kB / 0.4971 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1953/0.375, allocations: 7.229 MB / 0.5042 GB, free: 52.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/0.3762, allocations: 102.9 kB / 0.5043 GB, free: 52.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/0.3763, allocations: 86.73 kB / 0.5044 GB, free: 52.7 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,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 113 * Array equations: 3 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007363/0.3771, allocations: 460 kB / 0.5048 GB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.3773, allocations: 107.9 kB / 0.5049 GB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003752/0.381, allocations: 2.095 MB / 0.5069 GB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.356e-05/0.3811, allocations: 33.41 kB / 0.507 GB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.3811, allocations: 2.75 kB / 0.507 GB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.3811, allocations: 4.734 kB / 0.507 GB, free: 51.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005803/0.3869, allocations: 3.564 MB / 0.5105 GB, free: 50.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.3869, allocations: 1.438 kB / 0.5105 GB, free: 50.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008434/0.3878, allocations: 165.9 kB / 0.5106 GB, free: 50.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000521/0.3883, allocations: 179.1 kB / 0.5108 GB, free: 50.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.913e-05/0.3884, allocations: 38.08 kB / 0.5108 GB, free: 50.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003493/0.3919, allocations: 5.885 MB / 0.5166 GB, free: 44.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3919, allocations: 1.406 kB / 0.5166 GB, free: 44.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005311/0.3973, allocations: 3.093 MB / 0.5196 GB, free: 43.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005701/0.3978, allocations: 316.3 kB / 0.5199 GB, free: 43.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.3981, allocations: 84.16 kB / 0.52 GB, free: 43.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008774/0.399, allocations: 130.1 kB / 0.5201 GB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002339/0.3992, allocations: 76.53 kB / 0.5202 GB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.3993, allocations: 45.73 kB / 0.5202 GB, free: 43.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007477/0.4001, allocations: 0.5293 MB / 0.5207 GB, free: 42.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4001, allocations: 3.938 kB / 0.5207 GB, free: 42.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001241/0.4013, allocations: 359.1 kB / 0.5211 GB, free: 42.93 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 (97): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009979/0.4023, allocations: 0.496 MB / 0.5216 GB, free: 42.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003802/0.4061, allocations: 3.128 MB / 0.5246 GB, free: 41.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4062, allocations: 0 / 0.5246 GB, free: 41.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001889/0.4081, allocations: 1.355 MB / 0.5259 GB, free: 40.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008627/0.4089, allocations: 212 kB / 0.5262 GB, free: 40.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.4136, allocations: 4.117 MB / 0.5302 GB, free: 38.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/0.4142, allocations: 1.303 MB / 0.5314 GB, free: 37.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000678/0.4149, allocations: 304.1 kB / 0.5317 GB, free: 36.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.4152, allocations: 88.94 kB / 0.5318 GB, free: 36.95 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4152, allocations: 0 / 0.5318 GB, free: 36.95 MB / 382.1 MB Notification: Performance of Templates: time 0.02335/0.4385, allocations: 20.47 MB / 0.5518 GB, free: 17.54 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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