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.0009805/0.0009805, allocations: 107.1 kB / 16.03 MB, free: 6.316 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.001044/0.001044, allocations: 195.4 kB / 16.95 MB, free: 6.145 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.3/1.3, allocations: 222.9 MB / 240.6 MB, free: 13.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04497/0.04497, allocations: 8.094 MB / 298.9 MB, free: 6.664 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 67.89 kB / 361.3 MB, free: 8.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2057, allocations: 51.51 MB / 412.8 MB, free: 25.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.003376/0.2091, allocations: 2.499 MB / 415.3 MB, free: 23.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002471/0.2116, allocations: 2.514 MB / 417.8 MB, free: 20.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.2117, allocations: 8 kB / 417.9 MB, free: 20.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004457/0.2122, allocations: 147.4 kB / 418 MB, free: 20.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005373/0.2127, allocations: 258.8 kB / 418.3 MB, free: 20.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.2144, allocations: 1.21 MB / 419.5 MB, free: 19.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.2147, allocations: 410.2 kB / 419.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2149, allocations: 124.1 kB / 420 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.2151, allocations: 171.3 kB / 420.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.2153, allocations: 207.1 kB / 420.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.393e-05/0.2153, allocations: 32 kB / 420.4 MB, free: 18.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004504/0.2158, allocations: 343.8 kB / 420.7 MB, free: 17.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.848e-05/0.2159, allocations: 87.66 kB / 420.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.216, allocations: 195 kB / 421 MB, free: 17.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005533/0.2166, allocations: 0.6271 MB / 421.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2166, allocations: 0 / 421.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2166, allocations: 0 / 421.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.2166, allocations: 0 / 421.6 MB, free: 16.91 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.003678/0.2203, allocations: 1.22 MB / 422.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.2203, allocations: 15.89 kB / 422.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.957e-05/0.2204, allocations: 62.72 kB / 422.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.843e-05/0.2205, allocations: 52.38 kB / 423 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.2208, allocations: 323.5 kB / 423.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.952e-05/0.2209, allocations: 54.83 kB / 423.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.596e-05/0.2209, allocations: 31.94 kB / 423.4 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005907/0.2215, allocations: 436.5 kB / 423.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2216, allocations: 3.984 kB / 423.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.77e-05/0.2216, allocations: 12 kB / 423.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.2216, allocations: 12 kB / 423.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004917/0.2221, allocations: 378.1 kB / 424.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001923/0.224, allocations: 1.753 MB / 426 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007832/0.2248, allocations: 498.2 kB / 426.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.2252, allocations: 256.7 kB / 426.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.612e-05/0.2253, allocations: 15.98 kB / 426.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005423/0.2258, allocations: 322.9 kB / 427 MB, free: 11.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.784e-06/0.2258, allocations: 0 / 427 MB, free: 11.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.003661/0.2295, allocations: 1.363 MB / 428.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.2295, allocations: 110.8 kB / 428.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.2298, allocations: 279 kB / 428.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.2298, allocations: 41.69 kB / 428.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.617e-05/0.2299, allocations: 172.8 kB / 429 MB, free: 9.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.23, allocations: 141.9 kB / 429.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/0.2302, allocations: 94.23 kB / 429.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.922e-05/0.2302, allocations: 342.8 kB / 429.5 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/0.2305, allocations: 261 kB / 429.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.2309, allocations: 308.7 kB / 430.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/0.2315, allocations: 0.5626 MB / 430.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2315, allocations: 0 / 430.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00165/0.2332, allocations: 0.9209 MB / 431.6 MB, free: 6.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.934e-05/0.2332, allocations: 6.344 kB / 431.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2332, allocations: 3.938 kB / 431.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002464/0.2357, allocations: 0.6124 MB / 432.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.236, allocations: 71.91 kB / 432.3 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.2373, allocations: 1.071 MB / 433.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.2377, allocations: 51.52 kB / 433.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.914e-05/0.2377, allocations: 16 kB / 433.4 MB, free: 4.668 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.0001712/0.2379, allocations: 165.7 kB / 433.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.238, allocations: 31.62 kB / 433.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.239, allocations: 0.7701 MB / 434.4 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.239, allocations: 15.98 kB / 434.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2391, allocations: 0 / 434.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2391, allocations: 0 / 434.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003941/0.2395, allocations: 0.5563 MB / 434.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.2395, allocations: 4 kB / 434.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.2396, allocations: 51.92 kB / 435 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/0.242, allocations: 0.586 MB / 435.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.716e-05/0.242, allocations: 12 kB / 435.6 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.2433, allocations: 1.078 MB / 436.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2433, allocations: 0 / 436.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009002/0.2442, allocations: 0.7366 MB / 437.4 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.543e-05/0.2443, allocations: 120.5 kB / 437.5 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.32e-05/0.2444, allocations: 11.94 kB / 437.5 MB, free: 408 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/0.2447, allocations: 27.92 kB / 437.6 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.858e-05/0.2447, allocations: 32.39 kB / 437.6 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-05/0.2448, allocations: 12 kB / 437.6 MB, free: 332 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000159/0.2449, allocations: 202 kB / 437.8 MB, free: 132 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.245, allocations: 0 / 437.8 MB, free: 132 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.2454, allocations: 139.9 kB / 437.9 MB, free: 15.99 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.002166/0.2476, allocations: 1.585 MB / 439.5 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001846/0.2494, allocations: 0.7358 MB / 440.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2494, allocations: 0 / 440.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.2506, allocations: 410.3 kB / 440.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003729/0.251, allocations: 54.06 kB / 440.7 MB, free: 13.34 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.006795/0.2578, allocations: 4.483 MB / 445.2 MB, free: 8.77 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.2581, allocations: 0.7927 MB / 446 MB, free: 7.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.2584, allocations: 58.91 kB / 446 MB, free: 7.891 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.2585, allocations: 119.4 kB / 446.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2585, allocations: 0 / 446.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7375/0.996, allocations: 11.48 MB / 457.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.9963, allocations: 250 kB / 457.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/3.083, allocations: 64 / 457.9 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)