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.001466/0.001466, allocations: 104 kB / 16.45 MB, free: 6.434 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.001863/0.001863, allocations: 192.7 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.392/1.392, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04996/0.04996, allocations: 8.086 MB / 299.3 MB, free: 6.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001157, allocations: 67.89 kB / 414 MB, free: 22.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09779, allocations: 51.51 MB / 465.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.004102/0.1019, allocations: 2.492 MB / 468 MB, free: 192 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003944/0.1059, allocations: 2.55 MB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003685/0.1063, allocations: 4 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007151/0.107, allocations: 163 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.1082, allocations: 294.4 kB / 471 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002427/0.1106, allocations: 1.28 MB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007618/0.1114, allocations: 418.1 kB / 472.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002973/0.1117, allocations: 128.1 kB / 472.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.112, allocations: 171.3 kB / 473 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000427/0.1125, allocations: 207.1 kB / 473.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.504e-05/0.1126, allocations: 32 kB / 473.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007666/0.1133, allocations: 339.8 kB / 473.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.1135, allocations: 87.61 kB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.1137, allocations: 191 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.1149, allocations: 0.6318 MB / 474.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1149, allocations: 0 / 474.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1149, allocations: 0 / 474.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.1149, allocations: 8 kB / 474.4 MB, free: 9.695 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.004383/0.1193, allocations: 1.22 MB / 475.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1194, allocations: 11.89 kB / 475.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.1195, allocations: 62.73 kB / 475.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.1196, allocations: 52.41 kB / 475.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005/0.1201, allocations: 327.4 kB / 476.1 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.567e-05/0.1202, allocations: 50.83 kB / 476.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.837e-05/0.1203, allocations: 31.94 kB / 476.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007322/0.121, allocations: 448.5 kB / 476.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.121, allocations: 3.938 kB / 476.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.1211, allocations: 12 kB / 476.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.1211, allocations: 7.984 kB / 476.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000595/0.1217, allocations: 382.1 kB / 477 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.1242, allocations: 1.742 MB / 478.8 MB, free: 5.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009159/0.1251, allocations: 0.4899 MB / 479.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003672/0.1255, allocations: 252.8 kB / 479.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.737e-05/0.1256, allocations: 11.98 kB / 479.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000604/0.1262, allocations: 319.1 kB / 479.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.394e-06/0.1262, allocations: 0 / 479.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.004195/0.1304, allocations: 1.351 MB / 481.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.452e-05/0.1305, allocations: 114.7 kB / 481.3 MB, free: 2.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.1309, allocations: 286.9 kB / 481.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.098e-05/0.131, allocations: 37.7 kB / 481.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1311, allocations: 168.9 kB / 481.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.1313, allocations: 137.9 kB / 481.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.1315, allocations: 98.23 kB / 482 MB, free: 1.738 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1317, allocations: 338.8 kB / 482.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.1321, allocations: 265 kB / 482.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/0.1326, allocations: 308.6 kB / 482.9 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008298/0.1334, allocations: 0.5586 MB / 483.4 MB, free: 276 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1334, allocations: 4.031 kB / 483.5 MB, free: 272 kB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002018/0.1355, allocations: 0.9171 MB / 484.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1355, allocations: 8 kB / 484.4 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.1355, allocations: 3.938 kB / 484.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/0.1381, allocations: 0.6017 MB / 485 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.1385, allocations: 75.89 kB / 485.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.1402, allocations: 1.083 MB / 486.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/0.1406, allocations: 43.58 kB / 486.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.1406, allocations: 16 kB / 486.2 MB, free: 13.48 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.0002379/0.1409, allocations: 157.7 kB / 486.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.651e-05/0.141, allocations: 31.62 kB / 486.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.1423, allocations: 0.7894 MB / 487.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/0.1423, allocations: 7.938 kB / 487.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.1423, allocations: 0 / 487.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.351e-06/0.1424, allocations: 3.984 kB / 487.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005865/0.1429, allocations: 0.5564 MB / 487.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.143, allocations: 0 / 487.7 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.1432, allocations: 55.91 kB / 487.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002522/0.1457, allocations: 0.5822 MB / 488.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.792e-05/0.1458, allocations: 8 kB / 488.4 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001572/0.1473, allocations: 1.09 MB / 489.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1473, allocations: 0 / 489.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.1485, allocations: 0.7367 MB / 490.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.1487, allocations: 108.6 kB / 490.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.884e-05/0.1488, allocations: 19.88 kB / 490.3 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.1491, allocations: 19.98 kB / 490.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.032e-05/0.1492, allocations: 28.39 kB / 490.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.1492, allocations: 16 kB / 490.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002325/0.1494, allocations: 205.9 kB / 490.6 MB, free: 8.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1495, allocations: 0 / 490.6 MB, free: 8.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004555/0.1499, allocations: 131.9 kB / 490.7 MB, free: 8.812 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.002325/0.1523, allocations: 1.605 MB / 492.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.1541, allocations: 0.7086 MB / 493 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.1541, allocations: 0 / 493 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.1553, allocations: 406.3 kB / 493.4 MB, free: 6.219 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004465/0.1557, allocations: 54.45 kB / 493.5 MB, free: 6.168 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.007184/0.1629, allocations: 4.348 MB / 497.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.1634, allocations: 0.7963 MB / 498.6 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002066/0.1636, allocations: 54.92 kB / 498.7 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000186/0.1638, allocations: 127.4 kB / 498.8 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1638, allocations: 0 / 498.8 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3061/0.4699, allocations: 12.1 MB / 0.4989 GB, free: 4.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.73, allocations: 4 kB / 0.4989 GB, free: 4.703 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)