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.001081/0.001081, 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.001132/0.001132, 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.368/1.368, allocations: 222.9 MB / 240.9 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.05473/0.05473, allocations: 8.093 MB / 299.2 MB, free: 6.738 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 67.89 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2462, allocations: 51.52 MB / 413.4 MB, free: 25.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003679/0.2499, allocations: 2.465 MB / 415.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002735/0.2527, allocations: 2.549 MB / 418.4 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001791/0.2529, allocations: 8 kB / 418.4 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000514/0.2534, allocations: 167 kB / 418.5 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006529/0.2541, allocations: 294.4 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001713/0.2558, allocations: 1.275 MB / 420.1 MB, free: 18.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.2562, allocations: 406.3 kB / 420.5 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.2564, allocations: 132.1 kB / 420.6 MB, free: 18.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000119/0.2566, allocations: 163.4 kB / 420.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002095/0.2568, allocations: 211 kB / 421 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.837e-05/0.2568, allocations: 32 kB / 421 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000547/0.2574, allocations: 343.7 kB / 421.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2575, allocations: 83.73 kB / 421.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001615/0.2577, allocations: 187 kB / 421.6 MB, free: 17.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.2584, allocations: 0.6349 MB / 422.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.2584, allocations: 0 / 422.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2584, allocations: 0 / 422.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2584, allocations: 0 / 422.3 MB, free: 16.64 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.003826/0.2622, allocations: 1.22 MB / 423.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2623, allocations: 15.83 kB / 423.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.208e-05/0.2624, allocations: 66.72 kB / 423.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.2625, allocations: 48.38 kB / 423.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.2628, allocations: 327.5 kB / 423.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.842e-05/0.2629, allocations: 50.83 kB / 424 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.2629, allocations: 35.94 kB / 424 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005667/0.2635, allocations: 448.4 kB / 424.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.2635, allocations: 0 / 424.5 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.2636, allocations: 8 kB / 424.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2636, allocations: 8 kB / 424.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004597/0.2641, allocations: 382.1 kB / 424.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001952/0.266, allocations: 1.746 MB / 426.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008012/0.2668, allocations: 0.4989 MB / 427.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.2672, allocations: 244.8 kB / 427.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.363e-05/0.2672, allocations: 15.97 kB / 427.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005526/0.2678, allocations: 326.9 kB / 427.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 3.737e-06/0.2678, allocations: 0 / 427.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003837/0.2717, allocations: 1.355 MB / 429 MB, free: 9.539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.2717, allocations: 114.8 kB / 429.1 MB, free: 9.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.272, allocations: 286.9 kB / 429.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.972e-05/0.272, allocations: 33.7 kB / 429.4 MB, free: 9.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.014e-05/0.2721, allocations: 168.8 kB / 429.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.149e-05/0.2722, allocations: 145.9 kB / 429.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.2724, allocations: 98.22 kB / 429.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.268e-05/0.2725, allocations: 342.8 kB / 430.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.2728, allocations: 257 kB / 430.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003782/0.2732, allocations: 312.6 kB / 430.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00071/0.2739, allocations: 0.5586 MB / 431.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2739, allocations: 0 / 431.3 MB, free: 7.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001892/0.2758, allocations: 0.9093 MB / 432.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.2759, allocations: 11.98 kB / 432.2 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.2759, allocations: 7.938 kB / 432.2 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002484/0.2784, allocations: 0.6135 MB / 432.8 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.2786, allocations: 75.89 kB / 432.9 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.28, allocations: 1.068 MB / 434 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.2804, allocations: 47.53 kB / 434 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.2804, allocations: 15.98 kB / 434 MB, free: 4.402 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.0002474/0.2807, allocations: 170.4 kB / 434.2 MB, free: 4.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.29e-05/0.2808, allocations: 31.62 kB / 434.2 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001205/0.282, allocations: 0.7818 MB / 435 MB, free: 3.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.282, allocations: 4 kB / 435 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.282, allocations: 0 / 435 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.282, allocations: 11.92 kB / 435 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004358/0.2825, allocations: 0.5486 MB / 435.6 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2825, allocations: 0 / 435.6 MB, free: 2.793 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001626/0.2827, allocations: 55.91 kB / 435.6 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.285, allocations: 0.5883 MB / 436.2 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.2851, allocations: 11.98 kB / 436.2 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001341/0.2864, allocations: 1.085 MB / 437.3 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2864, allocations: 4 kB / 437.3 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009587/0.2874, allocations: 0.7249 MB / 438.1 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.954e-05/0.2875, allocations: 112.6 kB / 438.2 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.533e-05/0.2876, allocations: 15.94 kB / 438.2 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.2879, allocations: 23.98 kB / 438.2 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.288, allocations: 28.39 kB / 438.2 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.288, allocations: 20 kB / 438.2 MB, free: 56 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002383/0.2882, allocations: 205.9 kB / 438.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2883, allocations: 0 / 438.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004392/0.2887, allocations: 131.8 kB / 438.6 MB, free: 15.73 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.002371/0.2911, allocations: 1.601 MB / 440.2 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.293, allocations: 0.7319 MB / 440.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.293, allocations: 0 / 440.9 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.2942, allocations: 406.3 kB / 441.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.2946, allocations: 48.88 kB / 441.4 MB, free: 13.07 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.007049/0.3017, allocations: 4.354 MB / 445.7 MB, free: 8.621 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3021, allocations: 0.7888 MB / 446.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.3023, allocations: 58.91 kB / 446.6 MB, free: 7.75 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/0.3025, allocations: 127.3 kB / 446.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3025, allocations: 0 / 446.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3657/0.6683, allocations: 11.55 MB / 458.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.3, allocations: 12.69 kB / 458.2 MB, free: 12.16 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 & /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)