Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm.motor.slip|power.p.1.|power.p.2.|power.p.3.|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006706/0.0006707, allocations: 90.25 kB / 16.65 MB, free: 6.59 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.0007294/0.0007294, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.201/1.201, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1592/0.1592, allocations: 38.08 MB / 330.8 MB, free: 8.527 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.000275, allocations: 8 kB / 400.7 MB, free: 34.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09501/0.09529, allocations: 59.15 MB / 459.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007487/0.1028, allocations: 7.887 MB / 467.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007033/0.1099, allocations: 5.532 MB / 473.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004575/0.1103, allocations: 55.62 kB / 473.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00779/0.1181, allocations: 5.436 MB / 478.8 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001005/0.1192, allocations: 493.9 kB / 479.3 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009858/0.1202, allocations: 447.3 kB / 479.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002712/0.1229, allocations: 2.951 MB / 482.7 MB, free: 200 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001262/0.1242, allocations: 1.025 MB / 483.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006002/0.1248, allocations: 493.8 kB / 484.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007819/0.1256, allocations: 0.7084 MB / 484.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.166e-05/0.1257, allocations: 48 kB / 484.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004149/0.1261, allocations: 223.7 kB / 485.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003697/0.1265, allocations: 446.7 kB / 485.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004446/0.1269, allocations: 0.5341 MB / 486.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.1281, allocations: 1.464 MB / 487.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.1281, allocations: 0 / 487.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1281, allocations: 0 / 487.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.1281, allocations: 0 / 487.6 MB, free: 11.22 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.00233/0.1305, allocations: 1.254 MB / 488.8 MB, free: 9.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.1305, allocations: 12.03 kB / 488.9 MB, free: 9.898 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005378/0.1311, allocations: 147.5 kB / 489 MB, free: 9.754 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001387/0.1325, allocations: 0.8821 MB / 489.9 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.218e-05/0.1325, allocations: 58 kB / 489.9 MB, free: 8.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.1327, allocations: 95.88 kB / 490 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.1343, allocations: 1.239 MB / 491.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.666e-05/0.1344, allocations: 0 / 491.3 MB, free: 7.371 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.609e-05/0.1345, allocations: 28 kB / 491.3 MB, free: 7.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002178/0.1347, allocations: 93.94 kB / 491.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.1362, allocations: 1.003 MB / 492.4 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005742/0.1419, allocations: 4.936 MB / 497.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008834/0.1428, allocations: 0.6498 MB / 498 MB, free: 420 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005266/0.1434, allocations: 359.3 kB / 498.3 MB, free: 56 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.58e-05/0.1434, allocations: 8.562 kB / 498.3 MB, free: 48 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006334/0.1441, allocations: 457.7 kB / 498.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=62): time 1.813e-06/0.1441, allocations: 3.938 kB / 498.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.004197/0.1483, allocations: 2.708 MB / 0.4897 GB, free: 12.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.09e-05/0.1484, allocations: 115.4 kB / 0.4898 GB, free: 12.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008068/0.1492, allocations: 0.7467 MB / 0.4906 GB, free: 11.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.215e-05/0.1492, allocations: 41.7 kB / 0.4906 GB, free: 11.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003164/0.1496, allocations: 0.4948 MB / 0.4911 GB, free: 11.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.1497, allocations: 232.6 kB / 0.4913 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1498, allocations: 85.67 kB / 0.4914 GB, free: 10.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.15, allocations: 402.7 kB / 0.4918 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005343/0.1506, allocations: 381.7 kB / 0.4922 GB, free: 10.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000717/0.1513, allocations: 0.65 MB / 0.4928 GB, free: 9.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001271/0.1526, allocations: 1.057 MB / 0.4938 GB, free: 8.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.1526, allocations: 0 / 0.4938 GB, free: 8.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002722/0.1553, allocations: 1.631 MB / 0.4954 GB, free: 6.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.1553, allocations: 8 kB / 0.4954 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.1554, allocations: 8 kB / 0.4954 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.1568, allocations: 493.3 kB / 0.4959 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005642/0.1574, allocations: 167.7 kB / 0.4961 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1895/0.3469, allocations: 6.507 MB / 0.5024 GB, free: 54.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007478/0.3476, allocations: 49 kB / 0.5025 GB, free: 54.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.61e-05/0.3477, allocations: 45.48 kB / 0.5025 GB, free: 54.31 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005221/0.3482, allocations: 358.7 kB / 0.5028 GB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.3484, allocations: 89.06 kB / 0.5029 GB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.3502, allocations: 1.112 MB / 0.504 GB, free: 53.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.3502, allocations: 6.281 kB / 0.504 GB, free: 53.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.3502, allocations: 2.531 kB / 0.504 GB, free: 53.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.3502, allocations: 4.312 kB / 0.504 GB, free: 53.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003115/0.3534, allocations: 2.12 MB / 0.5061 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3534, allocations: 2.062 kB / 0.5061 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006874/0.3541, allocations: 121.1 kB / 0.5062 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004907/0.3546, allocations: 166.1 kB / 0.5064 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.208e-05/0.3546, allocations: 25.48 kB / 0.5064 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002885/0.3575, allocations: 4.452 MB / 0.5107 GB, free: 49.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3576, allocations: 6.812 kB / 0.5108 GB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001994/0.3596, allocations: 1.535 MB / 0.5123 GB, free: 48.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.3598, allocations: 215.6 kB / 0.5125 GB, free: 48.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.772e-05/0.3599, allocations: 21.77 kB / 0.5125 GB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004041/0.3603, allocations: 36.16 kB / 0.5125 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.3605, allocations: 46.88 kB / 0.5126 GB, free: 48.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-05/0.3605, allocations: 25.58 kB / 0.5126 GB, free: 48.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006451/0.3612, allocations: 0.5094 MB / 0.5131 GB, free: 48.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3612, allocations: 0 / 0.5131 GB, free: 48.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00103/0.3622, allocations: 270.8 kB / 0.5133 GB, free: 48.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,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.0008408/0.3631, allocations: 438.1 kB / 0.5138 GB, free: 47.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002184/0.3653, allocations: 1.32 MB / 0.515 GB, free: 47.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.3653, allocations: 0 / 0.515 GB, free: 47.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001077/0.3664, allocations: 0.7824 MB / 0.5158 GB, free: 46.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.3675, allocations: 195.9 kB / 0.516 GB, free: 46.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.372, allocations: 3.303 MB / 0.5192 GB, free: 44.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008097/0.3728, allocations: 1.15 MB / 0.5203 GB, free: 44.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007362/0.3735, allocations: 229.5 kB / 0.5206 GB, free: 44.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.3737, allocations: 70.47 kB / 0.5206 GB, free: 44.04 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3737, allocations: 0 / 0.5206 GB, free: 44.04 MB / 382.1 MB Notification: Performance of Templates: time 0.01983/0.3936, allocations: 13.73 MB / 0.534 GB, free: 36.9 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMav.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches