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.001423/0.001423, allocations: 103.9 kB / 16.45 MB, free: 6.457 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.001297/0.001297, allocations: 189 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.412/1.412, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05134/0.05134, allocations: 8.1 MB / 299.3 MB, free: 6.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 60.12 kB / 414 MB, free: 22.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09616, allocations: 51.53 MB / 465.5 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003995/0.1002, allocations: 2.473 MB / 468 MB, free: 200 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.1045, allocations: 2.551 MB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002348/0.1047, allocations: 8 kB / 470.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005827/0.1054, allocations: 167 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008088/0.1062, allocations: 294.4 kB / 471 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002436/0.1086, allocations: 1.282 MB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006554/0.1093, allocations: 418.1 kB / 472.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002639/0.1096, allocations: 132 kB / 472.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002145/0.1098, allocations: 167.3 kB / 473 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003423/0.1102, allocations: 207.2 kB / 473.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.257e-05/0.1102, allocations: 35.94 kB / 473.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006636/0.1109, allocations: 339.8 kB / 473.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.111, allocations: 91.61 kB / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.1112, allocations: 187 kB / 473.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008642/0.1121, allocations: 0.6345 MB / 474.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1121, allocations: 4 kB / 474.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1121, allocations: 0 / 474.5 MB, free: 9.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1121, allocations: 0 / 474.5 MB, free: 9.684 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.004437/0.1166, allocations: 1.239 MB / 475.7 MB, free: 8.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.1166, allocations: 11.89 kB / 475.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.599e-05/0.1167, allocations: 66.72 kB / 475.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.1169, allocations: 48.66 kB / 475.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004508/0.1173, allocations: 323.6 kB / 476.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.956e-05/0.1174, allocations: 58.83 kB / 476.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.1175, allocations: 31.94 kB / 476.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000794/0.1183, allocations: 444.4 kB / 476.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1183, allocations: 3.938 kB / 476.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.1183, allocations: 12 kB / 476.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.1184, allocations: 8 kB / 476.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006604/0.119, allocations: 386 kB / 477.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002666/0.1217, allocations: 1.734 MB / 478.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.1228, allocations: 494.9 kB / 479.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.1232, allocations: 260.8 kB / 479.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.034e-05/0.1232, allocations: 11.97 kB / 479.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006469/0.1239, allocations: 323.1 kB / 479.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.054e-06/0.1239, allocations: 0 / 479.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.004498/0.1284, allocations: 1.347 MB / 481.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.824e-05/0.1285, allocations: 110.8 kB / 481.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.1289, allocations: 286.9 kB / 481.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.434e-05/0.129, allocations: 41.7 kB / 481.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1291, allocations: 169 kB / 481.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1293, allocations: 150.7 kB / 481.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.1295, allocations: 98.23 kB / 482 MB, free: 1.695 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1297, allocations: 338.8 kB / 482.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.1302, allocations: 265 kB / 482.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/0.1307, allocations: 304.7 kB / 482.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009405/0.1316, allocations: 0.5664 MB / 483.5 MB, free: 228 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1316, allocations: 0 / 483.5 MB, free: 228 kB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.002203/0.1338, allocations: 0.9134 MB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.1339, allocations: 6.5 kB / 484.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.1339, allocations: 7.938 kB / 484.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/0.1368, allocations: 0.6017 MB / 485 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003096/0.1371, allocations: 71.91 kB / 485.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001902/0.139, allocations: 1.078 MB / 486.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004111/0.1394, allocations: 43.69 kB / 486.2 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/0.1395, allocations: 19.98 kB / 486.2 MB, free: 13.45 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.0003056/0.1398, allocations: 165.7 kB / 486.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.978e-05/0.1399, allocations: 35.81 kB / 486.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.1414, allocations: 0.7818 MB / 487.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.1414, allocations: 4 kB / 487.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1414, allocations: 3.938 kB / 487.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.1415, allocations: 3.984 kB / 487.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006958/0.1422, allocations: 0.5603 MB / 487.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.1422, allocations: 0 / 487.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.1424, allocations: 55.84 kB / 487.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00266/0.145, allocations: 0.5822 MB / 488.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.1451, allocations: 12 kB / 488.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001845/0.147, allocations: 1.078 MB / 489.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.147, allocations: 7.984 kB / 489.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.1483, allocations: 0.7329 MB / 490.2 MB, free: 9.309 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.1484, allocations: 120.7 kB / 490.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.272e-05/0.1485, allocations: 19.94 kB / 490.4 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/0.1489, allocations: 19.98 kB / 490.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.149, allocations: 28.39 kB / 490.4 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.149, allocations: 16 kB / 490.4 MB, free: 9.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002593/0.1493, allocations: 198 kB / 490.6 MB, free: 8.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1493, allocations: 4 kB / 490.6 MB, free: 8.895 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005295/0.1498, allocations: 135.9 kB / 490.8 MB, free: 8.762 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.003055/0.1529, allocations: 1.602 MB / 492.4 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.1549, allocations: 0.7164 MB / 493.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.155, allocations: 4 kB / 493.1 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.1562, allocations: 406.3 kB / 493.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.1566, allocations: 48.86 kB / 493.5 MB, free: 6.113 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.00751/0.1641, allocations: 4.367 MB / 497.9 MB, free: 1.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.1645, allocations: 0.7925 MB / 498.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002039/0.1648, allocations: 62.91 kB / 498.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.165, allocations: 127.3 kB / 498.9 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of SimCode: time 7.82e-07/0.165, allocations: 0 / 498.9 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2185/0.3835, allocations: 11.75 MB / 0.4987 GB, free: 4.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.74, allocations: 4 kB / 0.4987 GB, free: 4.98 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)