Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|motor.i|motor.v|motor.w_el|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001076/0.001076, allocations: 191 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.355/1.355, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1719/0.1719, allocations: 38.04 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 62.88 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 58.07 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006129/0.116, allocations: 4.536 MB / 462.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.1182, allocations: 1.487 MB / 464.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001943/0.1184, allocations: 19.88 kB / 464.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004078/0.1188, allocations: 111.2 kB / 464.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006172/0.1195, allocations: 282.3 kB / 464.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002874/0.1198, allocations: 107.8 kB / 464.9 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006563/0.1204, allocations: 0.5059 MB / 465.4 MB, free: 252 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.1207, allocations: 163.8 kB / 465.5 MB, free: 92 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002406/0.1209, allocations: 199.1 kB / 465.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.1212, allocations: 207.1 kB / 465.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.1213, allocations: 28 kB / 466 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.092e-05/0.1213, allocations: 28 kB / 466 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.1215, allocations: 99.66 kB / 466.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.1216, allocations: 183 kB / 466.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.122, allocations: 382.6 kB / 466.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.122, allocations: 3.938 kB / 466.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.122, allocations: 0 / 466.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.1221, allocations: 0 / 466.6 MB, free: 14.98 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001056/0.1231, allocations: 0.6593 MB / 467.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.1232, allocations: 15.89 kB / 467.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.437e-05/0.1232, allocations: 36.47 kB / 467.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006406/0.1239, allocations: 407.6 kB / 467.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.1239, allocations: 32.44 kB / 467.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.124, allocations: 24 kB / 467.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004456/0.1244, allocations: 330.2 kB / 468.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1245, allocations: 0 / 468.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.1245, allocations: 12 kB / 468.1 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1245, allocations: 8 kB / 468.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003165/0.1248, allocations: 201.5 kB / 468.3 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.1263, allocations: 1.49 MB / 469.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.1267, allocations: 190.4 kB / 470 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.1268, allocations: 87.72 kB / 470.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.1269, allocations: 0 / 470.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.1269, allocations: 42.56 kB / 470.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.292e-06/0.1269, allocations: 0 / 470.1 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001031/0.1279, allocations: 0.6819 MB / 470.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.128, allocations: 136.5 kB / 471 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.1283, allocations: 313.7 kB / 471.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/0.1284, allocations: 25.7 kB / 471.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.1285, allocations: 215.8 kB / 471.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.113e-05/0.1286, allocations: 74.94 kB / 471.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.144e-05/0.1286, allocations: 53.69 kB / 471.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1288, allocations: 346.9 kB / 472 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.883e-05/0.1289, allocations: 43.98 kB / 472 MB, free: 9.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001556/0.129, allocations: 148.8 kB / 472.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.1293, allocations: 228 kB / 472.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.1293, allocations: 0 / 472.4 MB, free: 8.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003681/0.1297, allocations: 252.9 kB / 472.6 MB, free: 8.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.1297, allocations: 8 kB / 472.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1297, allocations: 4 kB / 472.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1298, allocations: 7.938 kB / 472.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003775/0.1301, allocations: 84.34 kB / 472.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008922/0.131, allocations: 1.385 MB / 474.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.1312, allocations: 8 kB / 474.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.1312, allocations: 12 kB / 474.1 MB, free: 6.848 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.1314, allocations: 174.2 kB / 474.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.687e-05/0.1315, allocations: 27.62 kB / 474.3 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003303/0.1318, allocations: 192.5 kB / 474.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1318, allocations: 0 / 474.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1319, allocations: 4 kB / 474.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1319, allocations: 0 / 474.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007369/0.1326, allocations: 0.5444 MB / 475.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1326, allocations: 0 / 475.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.1329, allocations: 47.91 kB / 475.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.1329, allocations: 4 kB / 475.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.1329, allocations: 8.031 kB / 475.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1329, allocations: 0 / 475.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1329, allocations: 0 / 475.1 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004336/0.1333, allocations: 498.4 kB / 475.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.743e-05/0.1334, allocations: 104.7 kB / 475.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.391e-05/0.1335, allocations: 4 kB / 475.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002129/0.1337, allocations: 12.03 kB / 475.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.223e-05/0.1337, allocations: 15.92 kB / 475.7 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.1338, allocations: 8 kB / 475.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.134, allocations: 215.2 kB / 476 MB, free: 4.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.134, allocations: 0 / 476 MB, free: 4.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004155/0.1344, allocations: 64 kB / 476 MB, free: 4.844 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001085/0.1345, allocations: 109.9 kB / 476.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003655/0.1349, allocations: 167.7 kB / 476.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1349, allocations: 0 / 476.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.135, allocations: 64.92 kB / 476.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007508/0.1358, allocations: 99.39 kB / 476.4 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001439/0.1372, allocations: 0.8193 MB / 477.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.1376, allocations: 0.8029 MB / 478.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.1378, allocations: 54.94 kB / 478.1 MB, free: 2.676 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.09e-05/0.1379, allocations: 23.44 kB / 478.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1379, allocations: 4 kB / 478.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of Templates: time 0.006572/0.1445, allocations: 3.201 MB / 481.4 MB, free: 15.49 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches