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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001744/0.001745, allocations: 104.4 kB / 16.92 MB, free: 6.184 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.001972/0.001972, allocations: 191.4 kB / 17.85 MB, free: 5.289 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.425/1.425, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.18/0.18, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 61.86 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.115, allocations: 58.07 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.006433/0.1215, allocations: 4.533 MB / 461.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.1239, allocations: 1.495 MB / 463 MB, free: 1.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003476/0.1243, allocations: 19.88 kB / 463 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005193/0.1248, allocations: 115.2 kB / 463.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009745/0.1259, allocations: 274.4 kB / 463.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.1262, allocations: 115.8 kB / 463.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008376/0.1271, allocations: 0.498 MB / 464 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.1274, allocations: 171.8 kB / 464.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003753/0.1278, allocations: 187.2 kB / 464.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004711/0.1283, allocations: 211.1 kB / 464.6 MB, free: 344 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.327e-05/0.1283, allocations: 32 kB / 464.6 MB, free: 312 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.363e-05/0.1284, allocations: 24 kB / 464.6 MB, free: 288 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.1286, allocations: 103.6 kB / 464.7 MB, free: 184 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.1288, allocations: 183.1 kB / 464.9 MB, free: 0 / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004935/0.1293, allocations: 370.7 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1293, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1293, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.81e-05/0.1293, allocations: 4 kB / 465.3 MB, free: 15.63 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.001234/0.1306, allocations: 0.6631 MB / 465.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.1306, allocations: 11.89 kB / 465.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.242e-05/0.1307, allocations: 66.72 kB / 466 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.569e-05/0.1308, allocations: 36.47 kB / 466 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006469/0.1315, allocations: 383.4 kB / 466.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.1315, allocations: 24.56 kB / 466.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/0.1316, allocations: 27.98 kB / 466.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.1321, allocations: 334.2 kB / 466.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.1321, allocations: 8 kB / 466.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.1322, allocations: 8 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1322, allocations: 11.94 kB / 466.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003805/0.1326, allocations: 209.5 kB / 467 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002153/0.1347, allocations: 1.482 MB / 468.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005066/0.1353, allocations: 202.3 kB / 468.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.1354, allocations: 75.41 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.1355, allocations: 3.938 kB / 468.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/0.1355, allocations: 46.5 kB / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 3.296e-06/0.1355, allocations: 0 / 468.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001488/0.137, allocations: 0.6832 MB / 469.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.682e-05/0.1371, allocations: 132.5 kB / 469.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.1375, allocations: 325.9 kB / 470 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.1375, allocations: 29.7 kB / 470 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.1377, allocations: 211.8 kB / 470.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.306e-05/0.1378, allocations: 70.98 kB / 470.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.207e-05/0.1379, allocations: 53.69 kB / 470.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.138, allocations: 346.8 kB / 470.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.019e-05/0.1381, allocations: 43.98 kB / 470.7 MB, free: 9.793 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.1382, allocations: 148.8 kB / 470.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.1385, allocations: 224.7 kB / 471.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1385, allocations: 0 / 471.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003625/0.1389, allocations: 257 kB / 471.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1389, allocations: 4 kB / 471.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1389, allocations: 4 kB / 471.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.1389, allocations: 11.92 kB / 471.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/0.1393, allocations: 75.91 kB / 471.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.1404, allocations: 1.385 MB / 472.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.1406, allocations: 12 kB / 472.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.1406, allocations: 8 kB / 472.8 MB, free: 7.438 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.0002119/0.1409, allocations: 174.5 kB / 473 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.141, allocations: 31.62 kB / 473 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003497/0.1413, allocations: 187.5 kB / 473.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1414, allocations: 4.094 kB / 473.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-06/0.1414, allocations: 4 kB / 473.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1414, allocations: 3.984 kB / 473.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008154/0.1422, allocations: 0.5373 MB / 473.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.1422, allocations: 0 / 473.7 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.1424, allocations: 47.91 kB / 473.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.1425, allocations: 0 / 473.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.1425, allocations: 8 kB / 473.8 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1425, allocations: 4 kB / 473.8 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1425, allocations: 3.938 kB / 473.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004338/0.1429, allocations: 497.3 kB / 474.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.143, allocations: 100.7 kB / 474.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.91e-05/0.1431, allocations: 8 kB / 474.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/0.1433, allocations: 4 kB / 474.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.002e-05/0.1433, allocations: 19.97 kB / 474.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.1433, allocations: 11.92 kB / 474.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.1435, allocations: 227.1 kB / 474.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1436, allocations: 0 / 474.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004464/0.144, allocations: 56 kB / 474.7 MB, free: 5.43 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.0007606/0.1448, allocations: 1.024 MB / 475.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003993/0.1452, allocations: 180.4 kB / 475.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.1452, allocations: 0 / 475.9 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.1453, allocations: 63.92 kB / 476 MB, free: 4.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007273/0.146, allocations: 91 kB / 476.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.1499, allocations: 3.287 MB / 479.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.1503, allocations: 0.8067 MB / 480.2 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.1506, allocations: 54.86 kB / 480.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.1507, allocations: 115.4 kB / 480.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1507, allocations: 0 / 480.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.1778, allocations: 6.604 MB / 486.9 MB, free: 9.113 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.681, allocations: 10.73 kB / 486.9 MB, free: 9.105 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.csv","/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