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.001469/0.001469, allocations: 106.4 kB / 16.51 MB, free: 6.719 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.001743/0.001743, allocations: 194.5 kB / 17.43 MB, free: 6.059 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.444/1.444, allocations: 222.9 MB / 241.1 MB, free: 15.5 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.04 MB / 329.3 MB, free: 9.09 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 60.94 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.124, allocations: 58.07 MB / 456.2 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007289/0.1313, allocations: 5.177 MB / 461.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.1339, allocations: 1.686 MB / 463 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004564/0.1344, allocations: 27.81 kB / 463.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005933/0.1351, allocations: 99.36 kB / 463.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.1362, allocations: 250.7 kB / 463.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.1368, allocations: 95.89 kB / 463.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.1382, allocations: 0.6462 MB / 464.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.1386, allocations: 131.4 kB / 464.3 MB, free: 392 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005154/0.1391, allocations: 175.2 kB / 464.4 MB, free: 216 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005947/0.1398, allocations: 211.1 kB / 464.6 MB, free: 4 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.1399, allocations: 20.05 kB / 464.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.14, allocations: 20 kB / 464.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.1402, allocations: 95.61 kB / 464.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.1404, allocations: 175 kB / 464.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003957/0.1408, allocations: 374.7 kB / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1408, allocations: 0 / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1408, allocations: 0 / 465.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.1409, allocations: 0 / 465.3 MB, free: 15.33 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.001188/0.1421, allocations: 0.6554 MB / 466 MB, free: 14.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1421, allocations: 15.97 kB / 466 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.1422, allocations: 44.47 kB / 466 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006908/0.1429, allocations: 379.7 kB / 466.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.1429, allocations: 28.48 kB / 466.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.681e-05/0.143, allocations: 24 kB / 466.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006703/0.1437, allocations: 334.2 kB / 466.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.1437, allocations: 4 kB / 466.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.1438, allocations: 8 kB / 466.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1438, allocations: 8 kB / 466.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000384/0.1442, allocations: 205.5 kB / 467 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1458, allocations: 1.494 MB / 468.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.1463, allocations: 190.5 kB / 468.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.1464, allocations: 81.41 kB / 468.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.278e-05/0.1464, allocations: 3.938 kB / 468.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.818e-05/0.1465, allocations: 38.56 kB / 468.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 2.044e-06/0.1465, allocations: 7.875 kB / 468.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001255/0.1478, allocations: 0.6809 MB / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/0.1478, allocations: 136.5 kB / 469.6 MB, free: 10.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.1482, allocations: 321.6 kB / 469.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.1482, allocations: 25.7 kB / 470 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.1484, allocations: 215.8 kB / 470.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.558e-05/0.1484, allocations: 71.03 kB / 470.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1485, allocations: 57.88 kB / 470.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.1487, allocations: 342.8 kB / 470.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.679e-05/0.1488, allocations: 43.98 kB / 470.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.149, allocations: 148.8 kB / 470.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.1493, allocations: 228.4 kB / 471 MB, free: 9.113 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1493, allocations: 4 kB / 471 MB, free: 9.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003953/0.1497, allocations: 248.9 kB / 471.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.129e-05/0.1497, allocations: 7.984 kB / 471.3 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.1498, allocations: 4.438 kB / 471.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.1498, allocations: 11.94 kB / 471.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.1502, allocations: 79.91 kB / 471.4 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008847/0.1511, allocations: 1.29 MB / 472.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.1513, allocations: 12 kB / 472.7 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.1513, allocations: 8 kB / 472.7 MB, free: 7.312 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.0001722/0.1515, allocations: 161.8 kB / 472.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.687e-05/0.1516, allocations: 39.55 kB / 472.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003416/0.1519, allocations: 188.5 kB / 473.1 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1519, allocations: 4 kB / 473.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.1519, allocations: 0 / 473.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.152, allocations: 3.984 kB / 473.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007673/0.1527, allocations: 0.5412 MB / 473.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.1527, allocations: 4 kB / 473.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002372/0.153, allocations: 35.98 kB / 473.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.153, allocations: 0 / 473.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.153, allocations: 16.02 kB / 473.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.153, allocations: 3.938 kB / 473.7 MB, free: 6.25 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.153, allocations: 4 kB / 473.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000492/0.1535, allocations: 490.5 kB / 474.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.592e-05/0.1536, allocations: 108.6 kB / 474.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.1537, allocations: 11.94 kB / 474.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002105/0.1539, allocations: 0 / 474.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.1539, allocations: 19.92 kB / 474.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.154, allocations: 4 kB / 474.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.1542, allocations: 227.1 kB / 474.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1542, allocations: 0 / 474.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004321/0.1546, allocations: 63.94 kB / 474.6 MB, free: 5.309 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.0001306/0.1548, allocations: 103.2 kB / 474.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.1551, allocations: 158.8 kB / 474.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1551, allocations: 0 / 474.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.1553, allocations: 72.84 kB / 474.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007545/0.156, allocations: 90.19 kB / 475 MB, free: 4.887 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.1576, allocations: 0.946 MB / 476 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/0.158, allocations: 0.7993 MB / 476.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.1582, allocations: 54.92 kB / 476.8 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.663e-05/0.1582, allocations: 23.44 kB / 476.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1582, allocations: 4 kB / 476.8 MB, free: 3 MB / 350.1 MB Notification: Performance of Templates: time 0.00747/0.1657, allocations: 3.056 MB / 479.9 MB, free: 15.98 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Machines.mat","/var/lib/jenkins/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