Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 109.6 kB / 16.51 MB, free: 6.707 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.001217/0.001217, allocations: 194.5 kB / 17.43 MB, free: 6.066 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.431/1.431, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.05 MB / 329.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 69.27 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1117, allocations: 58.06 MB / 456.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.008225/0.12, allocations: 6.093 MB / 462.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.123, allocations: 1.838 MB / 464.1 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003608/0.1233, allocations: 39.75 kB / 464.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003923/0.1237, allocations: 99.34 kB / 464.2 MB, free: 416 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006924/0.1245, allocations: 294.5 kB / 464.5 MB, free: 120 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.1249, allocations: 131.9 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008593/0.1257, allocations: 0.876 MB / 465.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004441/0.1262, allocations: 378 kB / 465.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003386/0.1265, allocations: 250.9 kB / 466.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003906/0.1269, allocations: 298.8 kB / 466.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.127, allocations: 32 kB / 466.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.1271, allocations: 28 kB / 466.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.1273, allocations: 143.5 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002479/0.1275, allocations: 250.8 kB / 466.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.1281, allocations: 0.5684 MB / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.1281, allocations: 0 / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1281, allocations: 3.938 kB / 467.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.1281, allocations: 0 / 467.4 MB, free: 13.18 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001377/0.1295, allocations: 0.7854 MB / 468.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.1295, allocations: 8.031 kB / 468.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1296, allocations: 56.28 kB / 468.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006391/0.1303, allocations: 435.9 kB / 468.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.912e-05/0.1304, allocations: 66.58 kB / 468.8 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.73e-05/0.1305, allocations: 47.91 kB / 468.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008385/0.1313, allocations: 0.497 MB / 469.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.1313, allocations: 0 / 469.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.1314, allocations: 16 kB / 469.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.1314, allocations: 16 kB / 469.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006456/0.1321, allocations: 343.7 kB / 469.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002299/0.1344, allocations: 1.972 MB / 471.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004433/0.1348, allocations: 227.6 kB / 471.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002035/0.1351, allocations: 98.59 kB / 472 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.441e-05/0.1351, allocations: 4 kB / 472 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.1351, allocations: 38.55 kB / 472 MB, free: 8.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.923e-06/0.1351, allocations: 0 / 472 MB, free: 8.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001752/0.1369, allocations: 0.8409 MB / 472.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.137, allocations: 106.8 kB / 473 MB, free: 7.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003439/0.1373, allocations: 333.9 kB / 473.3 MB, free: 6.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.1374, allocations: 33.64 kB / 473.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.1375, allocations: 279.5 kB / 473.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.1376, allocations: 74.91 kB / 473.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1377, allocations: 69.56 kB / 473.7 MB, free: 6.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1379, allocations: 346.8 kB / 474.1 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002025/0.1381, allocations: 79.95 kB / 474.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.1384, allocations: 217.1 kB / 474.4 MB, free: 5.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001232/0.1396, allocations: 0.5609 MB / 474.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.1396, allocations: 0 / 474.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008489/0.1405, allocations: 408.2 kB / 475.3 MB, free: 4.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.227e-05/0.1405, allocations: 8 kB / 475.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1405, allocations: 4 kB / 475.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/0.1409, allocations: 89.16 kB / 475.4 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.1411, allocations: 63.91 kB / 475.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002045/0.1432, allocations: 1.751 MB / 477.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000295/0.1435, allocations: 16 kB / 477.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.1436, allocations: 16 kB / 477.3 MB, free: 2.645 MB / 350.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.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003819/0.1439, allocations: 197.7 kB / 477.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.1441, allocations: 31.62 kB / 477.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.1441, allocations: 43.3 kB / 477.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1441, allocations: 0 / 477.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.1442, allocations: 7.938 kB / 477.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1442, allocations: 0 / 477.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.1455, allocations: 0.7804 MB / 478.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1455, allocations: 0 / 478.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.1458, allocations: 39.97 kB / 478.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.183e-05/0.1459, allocations: 20.86 kB / 478.4 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.1459, allocations: 11.94 kB / 478.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.1473, allocations: 1.288 MB / 479.7 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1473, allocations: 160 / 479.7 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009812/0.1483, allocations: 0.5081 MB / 480.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/0.1485, allocations: 120.7 kB / 480.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/0.1485, allocations: 8 kB / 480.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.1487, allocations: 19.92 kB / 480.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.072e-05/0.1488, allocations: 15.98 kB / 480.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.1489, allocations: 7.984 kB / 480.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000278/0.1491, allocations: 227.2 kB / 480.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.1492, allocations: 3.938 kB / 480.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005586/0.1497, allocations: 88 kB / 480.7 MB, free: 14.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * 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 {(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.0001457/0.1499, allocations: 107.2 kB / 480.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008414/0.1507, allocations: 362.7 kB / 481.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1507, allocations: 4.125 kB / 481.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003661/0.1511, allocations: 214.5 kB / 481.4 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007832/0.1519, allocations: 101.6 kB / 481.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00195/0.1539, allocations: 1.107 MB / 482.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004946/0.1544, allocations: 0.8389 MB / 483.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002305/0.1546, allocations: 55.25 kB / 483.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-05/0.1547, allocations: 27.44 kB / 483.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1547, allocations: 0 / 483.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Templates: time 0.01323/0.1679, allocations: 4.241 MB / 487.7 MB, free: 7.902 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches