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.0008253/0.0008255, allocations: 86.55 kB / 16.31 MB, free: 6.449 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.0008235/0.0008235, allocations: 179.9 kB / 17.21 MB, free: 6.32 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.394/1.394, allocations: 223.3 MB / 241.2 MB, free: 292 kB / 190.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.1 MB / 330.4 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000339/0.0003391, allocations: 11.94 kB / 400.2 MB, free: 34.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1328, allocations: 59.16 MB / 459.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.005705/0.1385, allocations: 4.563 MB / 463.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002647/0.1412, allocations: 1.57 MB / 465.5 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000305/0.1416, allocations: 31.75 kB / 465.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003724/0.1419, allocations: 111.2 kB / 465.6 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000747/0.1427, allocations: 286.3 kB / 465.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.143, allocations: 123.8 kB / 466 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008557/0.1439, allocations: 0.537 MB / 466.5 MB, free: 88 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002316/0.1441, allocations: 113.9 kB / 466.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.1445, allocations: 167.1 kB / 466.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.1448, allocations: 203.2 kB / 467 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.1449, allocations: 19.94 kB / 467 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.573e-05/0.1449, allocations: 12 kB / 467.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.145, allocations: 87.7 kB / 467.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.1452, allocations: 101.5 kB / 467.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.1455, allocations: 275.2 kB / 467.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1455, allocations: 0 / 467.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1455, allocations: 0 / 467.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.1455, allocations: 0 / 467.5 MB, free: 15.12 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.001013/0.1465, allocations: 0.6047 MB / 468.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.1466, allocations: 8.031 kB / 468.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.263e-05/0.1467, allocations: 58.55 kB / 468.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.139e-05/0.1468, allocations: 47.47 kB / 468.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005617/0.1473, allocations: 370.7 kB / 468.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.235e-05/0.1474, allocations: 20.56 kB / 468.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.263e-05/0.1474, allocations: 27.95 kB / 468.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000587/0.148, allocations: 338.2 kB / 469 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.148, allocations: 4 kB / 469 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.831e-05/0.1481, allocations: 8 kB / 469 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.1481, allocations: 8 kB / 469 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003625/0.1484, allocations: 201.5 kB / 469.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1503, allocations: 1.49 MB / 470.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.1507, allocations: 194.3 kB / 470.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.1508, allocations: 71.8 kB / 470.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.1508, allocations: 15.94 kB / 470.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.1509, allocations: 42.55 kB / 471 MB, free: 11.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.833e-06/0.1509, allocations: 0 / 471 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001575/0.1525, allocations: 0.6691 MB / 471.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001698/0.1527, allocations: 140.8 kB / 471.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004321/0.1531, allocations: 317.5 kB / 472.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.1531, allocations: 33.7 kB / 472.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.1534, allocations: 211.9 kB / 472.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.59e-05/0.1534, allocations: 67.02 kB / 472.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.1535, allocations: 4 kB / 472.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1536, allocations: 346.8 kB / 472.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.1537, allocations: 47.97 kB / 472.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.1539, allocations: 148.8 kB / 472.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.1541, allocations: 75.86 kB / 473 MB, free: 9.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.1541, allocations: 7.938 kB / 473 MB, free: 9.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004357/0.1546, allocations: 252.9 kB / 473.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.1546, allocations: 4 kB / 473.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.1546, allocations: 4 kB / 473.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.1546, allocations: 4 kB / 473.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/0.155, allocations: 84.33 kB / 473.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.1561, allocations: 1.29 MB / 474.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.1562, allocations: 8 kB / 474.7 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.382e-05/0.1563, allocations: 12 kB / 474.7 MB, free: 7.359 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001977/0.1565, allocations: 178.5 kB / 474.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.631e-05/0.1566, allocations: 31.62 kB / 474.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003262/0.1569, allocations: 180.5 kB / 475.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.1569, allocations: 4.125 kB / 475.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1569, allocations: 7.984 kB / 475.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.1569, allocations: 0 / 475.1 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009035/0.1578, allocations: 0.5368 MB / 475.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1578, allocations: 0 / 475.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.1581, allocations: 51.91 kB / 475.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1581, allocations: 0 / 475.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.1581, allocations: 4 kB / 475.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1581, allocations: 0 / 475.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.1581, allocations: 11.98 kB / 475.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.1587, allocations: 0.4905 MB / 476.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.408e-05/0.1588, allocations: 104.7 kB / 476.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.1588, allocations: 0 / 476.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001906/0.159, allocations: 12 kB / 476.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.597e-05/0.159, allocations: 16.02 kB / 476.3 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.1591, allocations: 11.94 kB / 476.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002103/0.1593, allocations: 215.2 kB / 476.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1593, allocations: 0 / 476.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004165/0.1597, allocations: 60 kB / 476.6 MB, free: 5.359 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007818/0.1605, allocations: 1.027 MB / 477.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.1609, allocations: 148.6 kB / 477.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1609, allocations: 4.062 kB / 477.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.161, allocations: 71.84 kB / 477.8 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007514/0.1618, allocations: 89.25 kB / 477.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.165, allocations: 2.089 MB / 480 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.1655, allocations: 0.8071 MB / 480.8 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.1657, allocations: 58.94 kB / 480.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.1659, allocations: 115.3 kB / 481 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1659, allocations: 0 / 481 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02012/0.186, allocations: 6.186 MB / 487.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002217/0.1863, allocations: 201.3 kB / 487.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.13, allocations: 0 / 487.4 MB, free: 10.55 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Machines.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Machines_res.mat does not exist to compare? outputFormat=mat