Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 112.3 kB / 17.69 MB, free: 5.309 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.001027/0.001027, allocations: 192 kB / 18.63 MB, free: 4.375 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.366/1.366, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1762/0.1762, allocations: 38.04 MB / 330.5 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.00203, allocations: 65.27 kB / 400.3 MB, free: 33.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1284, allocations: 58.05 MB / 458.3 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007148/0.1356, allocations: 5.713 MB / 464 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006444/0.1421, allocations: 4.444 MB / 468.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005322/0.1426, allocations: 19.88 kB / 468.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009576/0.1522, allocations: 4.891 MB / 473.4 MB, free: 8.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001183/0.1534, allocations: 442 kB / 473.8 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.1545, allocations: 271.5 kB / 474.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00323/0.1577, allocations: 1.734 MB / 475.8 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001415/0.1591, allocations: 0.7196 MB / 476.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.1603, allocations: 478.4 kB / 477 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.1614, allocations: 0.4982 MB / 477.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001678/0.1615, allocations: 72 kB / 477.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.162, allocations: 147.8 kB / 477.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004048/0.1624, allocations: 327.2 kB / 478 MB, free: 3.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005851/0.163, allocations: 398.2 kB / 478.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001468/0.1644, allocations: 1.028 MB / 479.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.1645, allocations: 4 kB / 479.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1645, allocations: 0 / 479.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.302e-05/0.1645, allocations: 0 / 479.5 MB, free: 2.184 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002718/0.1673, allocations: 1.027 MB / 480.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1673, allocations: 11.89 kB / 480.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005757/0.1679, allocations: 108 kB / 480.6 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.1695, allocations: 0.6271 MB / 481.2 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.1696, allocations: 75.02 kB / 481.3 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.1698, allocations: 59.98 kB / 481.4 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.1715, allocations: 0.8099 MB / 482.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.379e-05/0.1716, allocations: 3.906 kB / 482.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.333e-05/0.1717, allocations: 27.98 kB / 482.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/0.1719, allocations: 57.22 kB / 482.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1732, allocations: 0.5867 MB / 482.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005251/0.1785, allocations: 2.915 MB / 485.8 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.1796, allocations: 426.1 kB / 486.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.18, allocations: 226.3 kB / 486.4 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.1801, allocations: 8.656 kB / 486.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004486/0.1805, allocations: 342.5 kB / 486.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.874e-06/0.1806, allocations: 0 / 486.7 MB, free: 10.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.002865/0.1834, allocations: 2.039 MB / 488.8 MB, free: 8.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.1835, allocations: 144.5 kB / 488.9 MB, free: 8.238 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004792/0.184, allocations: 445.8 kB / 489.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.924e-05/0.1841, allocations: 37.7 kB / 489.4 MB, free: 7.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.1843, allocations: 323.8 kB / 489.7 MB, free: 7.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.1844, allocations: 169.7 kB / 489.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.1846, allocations: 106.2 kB / 490 MB, free: 7.148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1847, allocations: 366.8 kB / 490.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.1851, allocations: 229.2 kB / 490.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.1855, allocations: 401.6 kB / 490.9 MB, free: 6.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/0.1881, allocations: 1.335 MB / 492.3 MB, free: 4.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1881, allocations: 0 / 492.3 MB, free: 4.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00165/0.1898, allocations: 0.9668 MB / 493.3 MB, free: 3.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.1899, allocations: 33.7 kB / 493.3 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1899, allocations: 8 kB / 493.3 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009011/0.1908, allocations: 309.1 kB / 493.6 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008983/0.1917, allocations: 175.7 kB / 493.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006391/0.1981, allocations: 5.296 MB / 499.1 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003653/0.1985, allocations: 23.98 kB / 499.1 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.1985, allocations: 27.98 kB / 499.1 MB, free: 13.53 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.000402/0.199, allocations: 291.3 kB / 499.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.055e-05/0.199, allocations: 63.34 kB / 499.5 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001253/0.2003, allocations: 0.8071 MB / 0.4885 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.2003, allocations: 7.938 kB / 0.4885 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.2003, allocations: 0 / 0.4885 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.2004, allocations: 7.984 kB / 0.4886 GB, free: 12.29 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002454/0.2028, allocations: 1.655 MB / 0.4902 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2028, allocations: 0 / 0.4902 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.204, allocations: 191.8 kB / 0.4904 GB, free: 10.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002224/0.2043, allocations: 78.45 kB / 0.4904 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.2043, allocations: 19.94 kB / 0.4904 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002984/0.2073, allocations: 4.257 MB / 0.4946 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2073, allocations: 4.062 kB / 0.4946 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.2088, allocations: 1.131 MB / 0.4957 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/0.209, allocations: 172.3 kB / 0.4959 GB, free: 4.129 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.046e-05/0.2091, allocations: 12 kB / 0.4959 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.2094, allocations: 15.98 kB / 0.4959 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.956e-05/0.2095, allocations: 35.95 kB / 0.4959 GB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.294e-05/0.2095, allocations: 11.98 kB / 0.496 GB, free: 4.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003559/0.2099, allocations: 319.1 kB / 0.4963 GB, free: 3.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2099, allocations: 0 / 0.4963 GB, free: 3.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006723/0.2106, allocations: 164 kB / 0.4964 GB, free: 3.582 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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,1,100.0%), (1,1,100.0%), (1,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.0001433/0.2107, allocations: 117 kB / 0.4965 GB, free: 3.457 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.2126, allocations: 0.9951 MB / 0.4975 GB, free: 2.426 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.2126, allocations: 0 / 0.4975 GB, free: 2.426 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.2134, allocations: 0.6343 MB / 0.4981 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006576/0.2141, allocations: 135.6 kB / 0.4982 GB, free: 1.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.2166, allocations: 1.652 MB / 0.4999 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005847/0.2172, allocations: 0.9799 MB / 0.5008 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000333/0.2175, allocations: 124.7 kB / 0.5009 GB, free: 14.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.2177, allocations: 35.44 kB / 0.501 GB, free: 14.75 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2177, allocations: 0 / 0.501 GB, free: 14.75 MB / 398.1 MB Notification: Performance of Templates: time 0.01495/0.2326, allocations: 8.388 MB / 0.5092 GB, free: 6.438 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches