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.001817/0.001817, allocations: 103.1 kB / 16.31 MB, free: 5.879 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.002092/0.002092, allocations: 192.3 kB / 17.24 MB, free: 5.539 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05477/0.05477, allocations: 8.101 MB / 299.2 MB, free: 6.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 59.91 kB / 361.8 MB, free: 8.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2306, allocations: 51.52 MB / 413.3 MB, free: 25.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003477/0.2341, allocations: 2.461 MB / 415.8 MB, free: 23.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003151/0.2373, allocations: 2.561 MB / 418.4 MB, free: 20.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.2375, allocations: 4 kB / 418.4 MB, free: 20.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004485/0.2379, allocations: 171 kB / 418.5 MB, free: 20.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005949/0.2386, allocations: 294.3 kB / 418.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.2404, allocations: 1.283 MB / 420.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004214/0.2408, allocations: 402.3 kB / 420.5 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001856/0.241, allocations: 124.1 kB / 420.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.2412, allocations: 171.3 kB / 420.8 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.2414, allocations: 203.1 kB / 421 MB, free: 17.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.2414, allocations: 28 kB / 421 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005679/0.242, allocations: 347.7 kB / 421.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.2421, allocations: 91.67 kB / 421.4 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.2422, allocations: 191 kB / 421.6 MB, free: 17.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005916/0.2428, allocations: 0.6271 MB / 422.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2429, allocations: 0 / 422.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2429, allocations: 0 / 422.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.2429, allocations: 0 / 422.3 MB, free: 16.59 MB / 302.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.003723/0.2466, allocations: 1.216 MB / 423.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2467, allocations: 15.89 kB / 423.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.597e-05/0.2467, allocations: 66.72 kB / 423.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.323e-05/0.2468, allocations: 52.38 kB / 423.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.2471, allocations: 315.5 kB / 423.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.553e-05/0.2472, allocations: 58.81 kB / 424 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.2472, allocations: 31.94 kB / 424 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005501/0.2478, allocations: 436.5 kB / 424.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2478, allocations: 0 / 424.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.2479, allocations: 15.98 kB / 424.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2479, allocations: 12 kB / 424.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004814/0.2484, allocations: 382 kB / 424.8 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.2503, allocations: 1.754 MB / 426.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007786/0.2511, allocations: 0.4897 MB / 427.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.2514, allocations: 256.8 kB / 427.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.513e-05/0.2514, allocations: 11.98 kB / 427.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004871/0.2519, allocations: 322.9 kB / 427.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.643e-06/0.2519, allocations: 0 / 427.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003714/0.2557, allocations: 1.363 MB / 429 MB, free: 9.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.156e-05/0.2557, allocations: 110.8 kB / 429.1 MB, free: 9.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.256, allocations: 279 kB / 429.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.866e-05/0.256, allocations: 41.7 kB / 429.4 MB, free: 9.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.604e-05/0.2561, allocations: 168.8 kB / 429.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.625e-05/0.2562, allocations: 141.9 kB / 429.7 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.2563, allocations: 94.23 kB / 429.8 MB, free: 8.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.317e-05/0.2564, allocations: 342.8 kB / 430.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003741/0.2568, allocations: 261 kB / 430.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003469/0.2571, allocations: 312.6 kB / 430.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000646/0.2578, allocations: 0.5625 MB / 431.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2578, allocations: 0 / 431.3 MB, free: 7.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001589/0.2594, allocations: 0.9171 MB / 432.2 MB, free: 6.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2594, allocations: 6.656 kB / 432.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2594, allocations: 3.938 kB / 432.2 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/0.2618, allocations: 0.6135 MB / 432.8 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002532/0.2621, allocations: 75.84 kB / 432.9 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.2634, allocations: 1.068 MB / 434 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.2637, allocations: 51.52 kB / 434 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.2638, allocations: 20 kB / 434 MB, free: 4.352 MB / 302.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.0001598/0.264, allocations: 165.7 kB / 434.2 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.264, allocations: 31.62 kB / 434.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.2651, allocations: 0.774 MB / 435 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.2651, allocations: 11.98 kB / 435 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.2651, allocations: 0 / 435 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2652, allocations: 3.938 kB / 435 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003779/0.2655, allocations: 0.5603 MB / 435.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2655, allocations: 0 / 435.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/0.2657, allocations: 47.92 kB / 435.6 MB, free: 2.695 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002295/0.268, allocations: 0.586 MB / 436.2 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.2681, allocations: 12 kB / 436.2 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.2693, allocations: 1.078 MB / 437.3 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2694, allocations: 0 / 437.3 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008839/0.2702, allocations: 0.7366 MB / 438 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.814e-05/0.2703, allocations: 120.6 kB / 438.2 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.324e-05/0.2704, allocations: 15.94 kB / 438.2 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.2707, allocations: 19.98 kB / 438.2 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.2707, allocations: 32.39 kB / 438.2 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.2708, allocations: 12 kB / 438.2 MB, free: 12 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002407/0.271, allocations: 202.1 kB / 438.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.271, allocations: 0 / 438.4 MB, free: 15.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004066/0.2715, allocations: 139.8 kB / 438.6 MB, free: 15.68 MB / 318.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.002162/0.2736, allocations: 1.598 MB / 440.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.2755, allocations: 0.7281 MB / 440.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2755, allocations: 0 / 440.9 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.2767, allocations: 414.3 kB / 441.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003678/0.2771, allocations: 44.53 kB / 441.3 MB, free: 13.03 MB / 318.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.006831/0.2839, allocations: 4.369 MB / 445.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.2844, allocations: 0.7927 MB / 446.5 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000221/0.2846, allocations: 54.92 kB / 446.6 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.2848, allocations: 119.4 kB / 446.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2848, allocations: 0 / 446.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1407/0.4255, allocations: 11.54 MB / 458.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.59, allocations: 11.94 kB / 458.2 MB, free: 12.11 MB / 334.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)