Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-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(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.VariableLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_VariableLoad",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.001488/0.001488, allocations: 104.7 kB / 16.45 MB, free: 6.438 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.001572/0.001572, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.347/1.347, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.048/0.048, allocations: 8.103 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 59.91 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09873/0.1002, allocations: 51.52 MB / 465.5 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.004196/0.1044, allocations: 2.488 MB / 468 MB, free: 168 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.1084, allocations: 2.546 MB / 470.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003353/0.1088, allocations: 11.94 kB / 470.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006925/0.1095, allocations: 167.1 kB / 470.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009779/0.1105, allocations: 290.4 kB / 471 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.1129, allocations: 1.28 MB / 472.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006765/0.1136, allocations: 414.2 kB / 472.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.1139, allocations: 128.1 kB / 472.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.1141, allocations: 167.3 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.1145, allocations: 207.1 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.264e-05/0.1145, allocations: 32 kB / 473.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006659/0.1152, allocations: 339.7 kB / 473.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1153, allocations: 95.59 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001968/0.1155, allocations: 183.1 kB / 473.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.1166, allocations: 0.6435 MB / 474.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1166, allocations: 0 / 474.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1166, allocations: 0 / 474.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.1166, allocations: 0 / 474.4 MB, free: 9.672 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.004506/0.1211, allocations: 1.22 MB / 475.7 MB, free: 8.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.1212, allocations: 11.89 kB / 475.7 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001042/0.1213, allocations: 74.66 kB / 475.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.1215, allocations: 44.47 kB / 475.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005096/0.122, allocations: 319.5 kB / 476.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.1221, allocations: 54.81 kB / 476.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.234e-05/0.1221, allocations: 35.94 kB / 476.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000746/0.1229, allocations: 436.4 kB / 476.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1229, allocations: 0 / 476.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.436e-05/0.123, allocations: 16 kB / 476.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.123, allocations: 16 kB / 476.6 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000624/0.1236, allocations: 386.1 kB / 477 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.1261, allocations: 1.738 MB / 478.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009336/0.127, allocations: 0.4898 MB / 479.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003654/0.1274, allocations: 260.7 kB / 479.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.881e-05/0.1275, allocations: 4 kB / 479.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006118/0.1281, allocations: 327.1 kB / 479.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.344e-06/0.1281, allocations: 0 / 479.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.004132/0.1323, allocations: 1.347 MB / 481.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.1323, allocations: 114.8 kB / 481.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.1328, allocations: 282.9 kB / 481.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.275e-05/0.1328, allocations: 37.7 kB / 481.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.133, allocations: 172.9 kB / 481.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.1331, allocations: 137.9 kB / 481.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.1333, allocations: 98.23 kB / 482 MB, free: 1.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1335, allocations: 342.8 kB / 482.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004103/0.1339, allocations: 261 kB / 482.6 MB, free: 1.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004373/0.1343, allocations: 308.6 kB / 482.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008245/0.1352, allocations: 0.5547 MB / 483.4 MB, free: 252 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.1352, allocations: 0 / 483.4 MB, free: 252 kB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001975/0.1372, allocations: 0.921 MB / 484.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1372, allocations: 6.344 kB / 484.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1372, allocations: 7.938 kB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/0.1398, allocations: 0.613 MB / 485 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002796/0.1401, allocations: 71.91 kB / 485.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001674/0.1417, allocations: 1.068 MB / 486.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.1422, allocations: 43.58 kB / 486.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-05/0.1422, allocations: 20 kB / 486.2 MB, free: 13.46 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(7,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002358/0.1425, allocations: 165.7 kB / 486.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.469e-05/0.1426, allocations: 39.56 kB / 486.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.1439, allocations: 0.7778 MB / 487.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.1439, allocations: 4 kB / 487.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.1439, allocations: 7.875 kB / 487.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.144, allocations: 0 / 487.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.1446, allocations: 0.5564 MB / 487.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.938e-06/0.1446, allocations: 0 / 487.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.1448, allocations: 51.98 kB / 487.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002439/0.1472, allocations: 0.5822 MB / 488.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.1473, allocations: 8 kB / 488.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/0.1489, allocations: 1.086 MB / 489.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1489, allocations: 8 kB / 489.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.15, allocations: 0.7249 MB / 490.2 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.1502, allocations: 112.6 kB / 490.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-05/0.1502, allocations: 23.86 kB / 490.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.1505, allocations: 24.3 kB / 490.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.288e-05/0.1506, allocations: 28.41 kB / 490.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.1507, allocations: 19.98 kB / 490.4 MB, free: 9.113 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.1509, allocations: 198 kB / 490.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1509, allocations: 0 / 490.6 MB, free: 8.922 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004541/0.1514, allocations: 135.9 kB / 490.7 MB, free: 8.789 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode) * Number of discrete states: 1 (varLoad.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 {(7,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002326/0.1537, allocations: 1.61 MB / 492.3 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.1555, allocations: 0.7085 MB / 493 MB, free: 6.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/0.1555, allocations: 4 kB / 493.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.1566, allocations: 398.4 kB / 493.4 MB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004118/0.1571, allocations: 56.86 kB / 493.5 MB, free: 6.145 MB / 366.1 MB Warning: Could not resolve URI (uri) at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006838/0.1639, allocations: 4.346 MB / 497.8 MB, free: 1.707 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.1643, allocations: 0.7925 MB / 498.6 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.1645, allocations: 54.92 kB / 498.7 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.1647, allocations: 119.4 kB / 498.8 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1647, allocations: 0 / 498.8 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3154/0.4802, allocations: 12.1 MB / 0.4989 GB, free: 4.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.6, allocations: 8.062 kB / 0.4989 GB, free: 4.68 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_VariableLoad_fmu --startTime=0 --stopTime=3.15324e+07 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1)