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.001239/0.00124, allocations: 101.6 kB / 16.45 MB, free: 6.406 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.001207/0.001207, allocations: 185.5 kB / 17.38 MB, free: 5.676 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.245/1.245, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04218/0.04218, allocations: 8.095 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 64.12 kB / 414 MB, free: 22.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0842/0.08534, allocations: 51.51 MB / 465.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003663/0.08905, allocations: 2.484 MB / 468 MB, free: 212 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003097/0.09217, allocations: 2.555 MB / 470.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000119/0.0923, allocations: 4 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004536/0.09277, allocations: 175 kB / 470.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000619/0.0934, allocations: 290.4 kB / 471 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002015/0.09543, allocations: 1.284 MB / 472.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004615/0.0959, allocations: 414.2 kB / 472.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.09611, allocations: 128.1 kB / 472.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001449/0.09626, allocations: 167.3 kB / 473 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.0965, allocations: 207.1 kB / 473.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.851e-05/0.09656, allocations: 32 kB / 473.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004816/0.09705, allocations: 343.7 kB / 473.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.496e-05/0.09715, allocations: 95.61 kB / 473.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.09731, allocations: 187 kB / 473.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006706/0.09799, allocations: 0.6345 MB / 474.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.098, allocations: 0 / 474.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.09801, allocations: 0 / 474.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.09802, allocations: 0 / 474.4 MB, free: 9.699 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.003932/0.102, allocations: 1.239 MB / 475.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.102, allocations: 11.89 kB / 475.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.476e-05/0.1021, allocations: 66.72 kB / 475.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.928e-05/0.1022, allocations: 52.59 kB / 475.8 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.1026, allocations: 323.6 kB / 476.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.509e-05/0.1026, allocations: 54.81 kB / 476.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.1027, allocations: 35.94 kB / 476.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000635/0.1033, allocations: 440.4 kB / 476.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1034, allocations: 0 / 476.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.765e-05/0.1034, allocations: 12 kB / 476.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.1034, allocations: 15.98 kB / 476.7 MB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.104, allocations: 382.1 kB / 477 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.106, allocations: 1.738 MB / 478.8 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008599/0.1069, allocations: 0.4978 MB / 479.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.1073, allocations: 252.8 kB / 479.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.453e-05/0.1073, allocations: 8 kB / 479.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000524/0.1079, allocations: 327.1 kB / 479.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.573e-06/0.1079, allocations: 0 / 479.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003881/0.1118, allocations: 1.347 MB / 481.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.1118, allocations: 118.8 kB / 481.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.1121, allocations: 282.9 kB / 481.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.1122, allocations: 37.7 kB / 481.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1123, allocations: 169 kB / 481.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.1124, allocations: 150.7 kB / 481.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1125, allocations: 94.23 kB / 482 MB, free: 1.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1127, allocations: 350.7 kB / 482.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003643/0.113, allocations: 257 kB / 482.6 MB, free: 1.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.1134, allocations: 312.6 kB / 482.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007656/0.1142, allocations: 0.5547 MB / 483.5 MB, free: 240 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1142, allocations: 0 / 483.5 MB, free: 240 kB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001803/0.116, allocations: 0.9173 MB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1161, allocations: 8 kB / 484.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1161, allocations: 3.938 kB / 484.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/0.1185, allocations: 0.613 MB / 485 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/0.1188, allocations: 71.91 kB / 485.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.1203, allocations: 1.064 MB / 486.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003229/0.1206, allocations: 51.67 kB / 486.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.1207, allocations: 16 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.0001907/0.1209, allocations: 177.6 kB / 486.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.247e-05/0.121, allocations: 31.81 kB / 486.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.1222, allocations: 0.7817 MB / 487.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1222, allocations: 4 kB / 487.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1222, allocations: 0 / 487.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.1222, allocations: 0 / 487.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004842/0.1227, allocations: 0.5603 MB / 487.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1227, allocations: 0 / 487.8 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.1229, allocations: 55.92 kB / 487.8 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002372/0.1253, allocations: 0.5814 MB / 488.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.1253, allocations: 8 kB / 488.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.1268, allocations: 1.089 MB / 489.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.1268, allocations: 8 kB / 489.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.1279, allocations: 0.7291 MB / 490.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.66e-05/0.128, allocations: 120.7 kB / 490.4 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.49e-05/0.128, allocations: 15.94 kB / 490.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002867/0.1283, allocations: 23.98 kB / 490.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-05/0.1284, allocations: 32.39 kB / 490.4 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.1284, allocations: 19.94 kB / 490.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.1286, allocations: 198 kB / 490.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1286, allocations: 0 / 490.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003954/0.129, allocations: 135.9 kB / 490.8 MB, free: 8.766 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.002089/0.1311, allocations: 1.602 MB / 492.4 MB, free: 7.281 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.1329, allocations: 0.7086 MB / 493.1 MB, free: 6.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.1329, allocations: 4 kB / 493.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001175/0.1341, allocations: 410.3 kB / 493.5 MB, free: 6.172 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003895/0.1345, allocations: 52.86 kB / 493.6 MB, free: 6.121 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.006466/0.1409, allocations: 4.357 MB / 497.9 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.1413, allocations: 0.7925 MB / 498.7 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001875/0.1415, allocations: 62.91 kB / 498.8 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/0.1417, allocations: 119.4 kB / 498.9 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1417, allocations: 0 / 498.9 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3239/0.4656, allocations: 11.75 MB / 0.4987 GB, free: 4.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.45, allocations: 4 kB / 0.4987 GB, free: 4.992 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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.VariableLoad_res.csv --start-time 0 --stop-time 3.15324e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12613 PowerSysPro_PowerSysPro_Examples_VariableLoad.fmu > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1)