Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm.motor.airgap.tau|asm.motor.slip|bdCond.heat.ports.1..Q_flow|bdCond.heat.ports.2..Q_flow|speed.flange.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 104 kB / 17.59 MB, free: 5.559 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.001568/0.001569, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.375/1.375, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1727/0.1727, allocations: 38.04 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 64.02 kB / 399.5 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08982/0.0911, allocations: 58.06 MB / 457.5 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006651/0.09779, allocations: 5.215 MB / 462.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005837/0.1037, allocations: 3.972 MB / 466.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004668/0.1042, allocations: 19.88 kB / 466.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008724/0.113, allocations: 4.792 MB / 471.5 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009149/0.1139, allocations: 322.4 kB / 471.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005718/0.1145, allocations: 207.7 kB / 472.1 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002059/0.1166, allocations: 1.559 MB / 473.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008544/0.1175, allocations: 0.5923 MB / 474.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005549/0.118, allocations: 366.7 kB / 474.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006287/0.1187, allocations: 410.5 kB / 475 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.1188, allocations: 56 kB / 475 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000211/0.119, allocations: 67.94 kB / 475.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002809/0.1193, allocations: 251.4 kB / 475.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003724/0.1197, allocations: 330.5 kB / 475.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008164/0.1205, allocations: 0.7905 MB / 476.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1205, allocations: 4 kB / 476.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1205, allocations: 3.938 kB / 476.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.1206, allocations: 0 / 476.5 MB, free: 5.094 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001603/0.1222, allocations: 0.8669 MB / 477.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1222, allocations: 11.89 kB / 477.3 MB, free: 4.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002988/0.1225, allocations: 76.08 kB / 477.4 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009671/0.1235, allocations: 0.5412 MB / 477.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.122e-05/0.1235, allocations: 33 kB / 478 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.283e-05/0.1236, allocations: 43.98 kB / 478 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009456/0.1246, allocations: 0.6374 MB / 478.7 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.1246, allocations: 0 / 478.7 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.1247, allocations: 23.98 kB / 478.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.1248, allocations: 48.97 kB / 478.7 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000755/0.1256, allocations: 471.6 kB / 479.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003028/0.1286, allocations: 2.51 MB / 481.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.1291, allocations: 285.2 kB / 482 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002331/0.1294, allocations: 142.2 kB / 482.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.181e-05/0.1294, allocations: 8.484 kB / 482.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.1295, allocations: 46.5 kB / 482.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 3.647e-06/0.1295, allocations: 0 / 482.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003006/0.1325, allocations: 1.546 MB / 483.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.1325, allocations: 81.11 kB / 483.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.133, allocations: 413.8 kB / 484.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.133, allocations: 33.7 kB / 484.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.1332, allocations: 295.5 kB / 484.5 MB, free: 12.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.081e-05/0.1333, allocations: 118.4 kB / 484.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.1335, allocations: 82.03 kB / 484.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1336, allocations: 358.8 kB / 485.1 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.1338, allocations: 132.8 kB / 485.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.1342, allocations: 278.3 kB / 485.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005693/0.1347, allocations: 453.7 kB / 485.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1347, allocations: 4 kB / 485.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001074/0.1358, allocations: 0.6793 MB / 486.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.1359, allocations: 4 kB / 486.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1359, allocations: 8 kB / 486.6 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004341/0.1363, allocations: 145.8 kB / 486.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.1366, allocations: 79.89 kB / 486.8 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.14, allocations: 3.672 MB / 490.5 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.1402, allocations: 16 kB / 490.5 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.1403, allocations: 16 kB / 490.5 MB, free: 6.086 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002867/0.1406, allocations: 233.7 kB / 490.8 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.895e-05/0.1407, allocations: 47.44 kB / 490.8 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001014/0.1417, allocations: 0.5711 MB / 491.4 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.1417, allocations: 4 kB / 491.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007599/0.1425, allocations: 498.2 kB / 491.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1425, allocations: 0 / 491.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.1441, allocations: 1.002 MB / 492.9 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.1441, allocations: 0 / 492.9 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.1443, allocations: 35.98 kB / 492.9 MB, free: 3.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002858/0.1446, allocations: 96.7 kB / 493 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.1447, allocations: 11.98 kB / 493 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/0.1467, allocations: 2.02 MB / 495 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1467, allocations: 0 / 495 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009839/0.1477, allocations: 0.6537 MB / 495.7 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.1479, allocations: 140.5 kB / 495.8 MB, free: 468 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/0.148, allocations: 4 kB / 495.8 MB, free: 464 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.1482, allocations: 11.98 kB / 495.8 MB, free: 452 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/0.1482, allocations: 28.03 kB / 495.9 MB, free: 424 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.1483, allocations: 12 kB / 495.9 MB, free: 412 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003443/0.1486, allocations: 303.1 kB / 496.2 MB, free: 112 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1486, allocations: 0 / 496.2 MB, free: 112 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005744/0.1492, allocations: 120 kB / 496.3 MB, free: 15.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001237/0.1493, allocations: 111.4 kB / 496.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.1504, allocations: 0.627 MB / 497 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1505, allocations: 0 / 497 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004597/0.1509, allocations: 302.6 kB / 497.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006654/0.1516, allocations: 117.1 kB / 497.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.1535, allocations: 1.189 MB / 498.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005297/0.1541, allocations: 0.9206 MB / 499.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.1542, allocations: 31.44 kB / 499.6 MB, free: 12.6 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1542, allocations: 0 / 499.6 MB, free: 12.6 MB / 382.1 MB Notification: Performance of Templates: time 0.01354/0.1677, allocations: 9.948 MB / 0.4976 GB, free: 2.656 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches