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.0009716/0.0009716, allocations: 97.25 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000889/0.0008892, allocations: 181.5 kB / 16.96 MB, free: 6.871 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.323/1.323, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.1483/0.1483, allocations: 8.082 MB / 300.2 MB, free: 2.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002822, allocations: 8 kB / 363.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.09905, allocations: 52.51 MB / 416.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.002664/0.1018, allocations: 2.127 MB / 418.2 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003306/0.1051, allocations: 2.497 MB / 420.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.1053, allocations: 12 kB / 420.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000482/0.1058, allocations: 151.4 kB / 420.9 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006454/0.1064, allocations: 254.8 kB / 421.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002012/0.1084, allocations: 1.222 MB / 422.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004815/0.1089, allocations: 398.2 kB / 422.8 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.1091, allocations: 107.6 kB / 422.9 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001398/0.1093, allocations: 151.3 kB / 423 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002329/0.1095, allocations: 187.1 kB / 423.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.1096, allocations: 20 kB / 423.2 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005602/0.1101, allocations: 323.7 kB / 423.5 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1103, allocations: 67.69 kB / 423.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000181/0.1104, allocations: 200.7 kB / 423.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1895/0.2999, allocations: 0.5968 MB / 424.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.3, allocations: 3.75 kB / 424.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3, allocations: 0 / 424.4 MB, free: 36.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.511e-05/0.3001, allocations: 1.156 kB / 424.4 MB, free: 36.86 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.004189/0.3042, allocations: 1.171 MB / 425.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3043, allocations: 10.56 kB / 425.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.3044, allocations: 64.42 kB / 425.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.3045, allocations: 41.19 kB / 425.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.3049, allocations: 327.6 kB / 426 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.949e-05/0.3049, allocations: 54.77 kB / 426 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.768e-05/0.305, allocations: 29.66 kB / 426.1 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006236/0.3056, allocations: 450.9 kB / 426.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3056, allocations: 0 / 426.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/0.3057, allocations: 10.72 kB / 426.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.3057, allocations: 6.5 kB / 426.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005203/0.3062, allocations: 383.2 kB / 426.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.3082, allocations: 1.767 MB / 428.7 MB, free: 35.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008168/0.309, allocations: 495.4 kB / 429.2 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.3094, allocations: 259.4 kB / 429.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.206e-05/0.3094, allocations: 12.92 kB / 429.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.3099, allocations: 322.5 kB / 429.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.733e-06/0.3099, allocations: 0 / 429.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.003949/0.3139, allocations: 1.36 MB / 431.1 MB, free: 34.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.3139, allocations: 111 kB / 431.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003259/0.3143, allocations: 287.7 kB / 431.5 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.127e-05/0.3143, allocations: 37.02 kB / 431.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3144, allocations: 173.2 kB / 431.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.3145, allocations: 133.2 kB / 431.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.511e-05/0.3146, allocations: 49.42 kB / 431.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.86e-05/0.3147, allocations: 344.9 kB / 432.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003865/0.3151, allocations: 257 kB / 432.5 MB, free: 34.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.3155, allocations: 313.3 kB / 432.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007129/0.3162, allocations: 0.5598 MB / 433.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3162, allocations: 0 / 433.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001677/0.3179, allocations: 0.9253 MB / 434.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3179, allocations: 6.844 kB / 434.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.3179, allocations: 4 kB / 434.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002437/0.3204, allocations: 0.6078 MB / 434.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002708/0.3206, allocations: 74.73 kB / 434.9 MB, free: 33.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.322, allocations: 1.068 MB / 436 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/0.3223, allocations: 47.44 kB / 436.1 MB, free: 33.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.755e-05/0.3224, allocations: 15.97 kB / 436.1 MB, free: 33.3 MB / 350.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.0001645/0.3225, allocations: 167.8 kB / 436.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.793e-05/0.3226, allocations: 32.44 kB / 436.3 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.3238, allocations: 0.783 MB / 437 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3238, allocations: 6.656 kB / 437.1 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3238, allocations: 3.75 kB / 437.1 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.727e-05/0.3239, allocations: 3.516 kB / 437.1 MB, free: 33.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.3243, allocations: 0.5657 MB / 437.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3243, allocations: 4.516 kB / 437.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.3245, allocations: 51.55 kB / 437.7 MB, free: 32.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/0.3268, allocations: 0.5912 MB / 438.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.3269, allocations: 15.05 kB / 438.3 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.3281, allocations: 1.07 MB / 439.4 MB, free: 31.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3282, allocations: 7.219 kB / 439.4 MB, free: 31.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009286/0.3291, allocations: 0.7339 MB / 440.1 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.126e-05/0.3292, allocations: 114 kB / 440.2 MB, free: 31.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.738e-05/0.3292, allocations: 15.31 kB / 440.2 MB, free: 31.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.3295, allocations: 34.03 kB / 440.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.945e-05/0.3296, allocations: 27 kB / 440.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.3297, allocations: 17.33 kB / 440.3 MB, free: 31.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001673/0.3298, allocations: 202.2 kB / 440.5 MB, free: 31.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.3299, allocations: 0 / 440.5 MB, free: 31.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.3303, allocations: 141 kB / 440.6 MB, free: 31.05 MB / 350.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.001943/0.3322, allocations: 1.596 MB / 442.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001542/0.3338, allocations: 0.7116 MB / 442.9 MB, free: 29.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3338, allocations: 4 kB / 442.9 MB, free: 29.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.3348, allocations: 397.7 kB / 443.3 MB, free: 29.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.3352, allocations: 53.16 kB / 443.4 MB, free: 29.63 MB / 350.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.005867/0.3411, allocations: 4.528 MB / 447.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.3413, allocations: 0.7913 MB / 448.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002139/0.3416, allocations: 62.08 kB / 448.8 MB, free: 26.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.3417, allocations: 126 kB / 448.9 MB, free: 26.15 MB / 350.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3417, allocations: 0 / 448.9 MB, free: 26.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1414/0.4832, allocations: 10.67 MB / 459.6 MB, free: 25.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001712/0.4834, allocations: 254.4 kB / 459.8 MB, free: 25.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.953/2.436, allocations: 0 / 459.8 MB, free: 25.13 MB / 350.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)