Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009565/0.0009603, allocations: 171.7 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.269/1.269, allocations: 205.4 MB / 222.2 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007339/0.0007339, allocations: 92.14 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1639/0.1639, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000338/0.000338, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2792, allocations: 56.33 MB / 479.7 MB, free: 9.215 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007994/0.2873, allocations: 8.281 MB / 488 MB, free: 3.539 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005312/0.2926, allocations: 2.712 MB / 490.7 MB, free: 1.613 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.2937, allocations: 60.16 kB / 490.8 MB, free: 1.586 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008945/0.2946, allocations: 271.9 kB / 491.1 MB, free: 1.441 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001897/0.2965, allocations: 0.5774 MB / 491.6 MB, free: 1.125 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.2982, allocations: 486.7 kB / 492.1 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002456/0.3007, allocations: 1.558 MB / 493.7 MB, free: 360 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00187/0.3026, allocations: 1.099 MB / 494.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001188/0.3038, allocations: 476.3 kB / 495.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001191/0.305, allocations: 0.663 MB / 495.9 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001209/0.3051, allocations: 41.78 kB / 495.9 MB, free: 15.35 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007563/0.3059, allocations: 230.3 kB / 496.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006707/0.3066, allocations: 482.2 kB / 496.6 MB, free: 15.17 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005997/0.3072, allocations: 0.4922 MB / 497.1 MB, free: 14.89 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.3085, allocations: 0.9823 MB / 498.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3086, allocations: 0 / 498.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.3086, allocations: 1.281 kB / 498.1 MB, free: 14.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.47e-05/0.3086, allocations: 0 / 498.1 MB, free: 14.67 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002549/0.3112, allocations: 1.155 MB / 499.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3112, allocations: 9.562 kB / 499.3 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001997/0.3114, allocations: 146.2 kB / 499.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001342/0.3128, allocations: 162.7 kB / 499.6 MB, free: 13.6 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.3142, allocations: 0.7125 MB / 0.4886 GB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.854e-05/0.3143, allocations: 65.22 kB / 0.4886 GB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002691/0.3146, allocations: 104.7 kB / 0.4887 GB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.317, allocations: 1.214 MB / 0.4899 GB, free: 12.19 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.3171, allocations: 6.625 kB / 0.4899 GB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.3172, allocations: 34.28 kB / 0.4899 GB, free: 12.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003164/0.3175, allocations: 60.47 kB / 0.49 GB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001937/0.3195, allocations: 1.007 MB / 0.491 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007273/0.3268, allocations: 4.788 MB / 0.4957 GB, free: 7.777 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.3281, allocations: 0.6619 MB / 0.4963 GB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006597/0.3288, allocations: 445.1 kB / 0.4967 GB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.866e-05/0.3289, allocations: 19.42 kB / 0.4967 GB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007482/0.3296, allocations: 0.5003 MB / 0.4972 GB, free: 6.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 2.755e-06/0.3297, allocations: 0 / 0.4972 GB, free: 6.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.004946/0.3346, allocations: 2.77 MB / 0.4999 GB, free: 5.145 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/0.3347, allocations: 168.2 kB / 0.5001 GB, free: 4.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007235/0.3355, allocations: 0.5906 MB / 0.5007 GB, free: 4.602 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.411e-05/0.3355, allocations: 47.28 kB / 0.5007 GB, free: 4.555 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003541/0.3359, allocations: 482.9 kB / 0.5012 GB, free: 4.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001984/0.3361, allocations: 259.7 kB / 0.5014 GB, free: 3.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.692e-05/0.3362, allocations: 18.81 kB / 0.5014 GB, free: 3.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.3363, allocations: 388.5 kB / 0.5018 GB, free: 3.527 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005558/0.3369, allocations: 373.8 kB / 0.5022 GB, free: 3.258 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007048/0.3376, allocations: 0.6271 MB / 0.5028 GB, free: 2.516 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006744/0.3443, allocations: 3.459 MB / 0.5062 GB, free: 14.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.3444, allocations: 0 / 0.5062 GB, free: 14.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002313/0.3467, allocations: 1.328 MB / 0.5075 GB, free: 13.53 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.418e-05/0.3467, allocations: 33.7 kB / 0.5075 GB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.3468, allocations: 8.781 kB / 0.5075 GB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006512/0.3474, allocations: 258.3 kB / 0.5077 GB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.3486, allocations: 263.5 kB / 0.508 GB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005404/0.354, allocations: 5.578 MB / 0.5134 GB, free: 6.988 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008897/0.3549, allocations: 43.95 kB / 0.5135 GB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/0.3551, allocations: 40 kB / 0.5135 GB, free: 6.906 MB / 346.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$PRE.switch.t0,$PRE.switch.open,$PRE.switch.closed,$whenCondition2,switch.control[1],switch.t0,switch.open,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008297/0.3559, allocations: 383 kB / 0.5139 GB, free: 6.516 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002224/0.3561, allocations: 83.11 kB / 0.514 GB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.3582, allocations: 1.129 MB / 0.5151 GB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.373e-05/0.3582, allocations: 11.98 kB / 0.5151 GB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.3583, allocations: 4 kB / 0.5151 GB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.3583, allocations: 7.984 kB / 0.5151 GB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003907/0.3622, allocations: 2.249 MB / 0.5173 GB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-06/0.3622, allocations: 4 kB / 0.5173 GB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000915/0.3631, allocations: 183.7 kB / 0.5175 GB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000714/0.3639, allocations: 246.4 kB / 0.5177 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.67e-05/0.364, allocations: 31.92 kB / 0.5177 GB, free: 2.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005209/0.3692, allocations: 5.507 MB / 0.5231 GB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3692, allocations: 4.031 kB / 0.5231 GB, free: 12.53 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00284/0.3721, allocations: 1.638 MB / 0.5247 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003444/0.3724, allocations: 144.2 kB / 0.5249 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001811/0.3726, allocations: 27.94 kB / 0.5249 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004994/0.3731, allocations: 27.97 kB / 0.5249 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.3734, allocations: 60.42 kB / 0.525 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.676e-05/0.3734, allocations: 23.98 kB / 0.525 GB, free: 10.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005699/0.374, allocations: 407 kB / 0.5254 GB, free: 10.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.374, allocations: 0 / 0.5254 GB, free: 10.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001302/0.3753, allocations: 272 kB / 0.5256 GB, free: 9.887 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002974/0.3783, allocations: 2.208 MB / 0.5278 GB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002638/0.381, allocations: 1.384 MB / 0.5291 GB, free: 6.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.381, allocations: 0 / 0.5291 GB, free: 6.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.3826, allocations: 0.9209 MB / 0.53 GB, free: 5.211 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001559/0.3842, allocations: 173 kB / 0.5302 GB, free: 5.043 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.395, allocations: 6.252 MB / 0.5363 GB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000856/0.3959, allocations: 1.118 MB / 0.5374 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004987/0.3964, allocations: 347.3 kB / 0.5377 GB, free: 13.05 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.3964, allocations: 0 / 0.5377 GB, free: 13.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.186/5.582, allocations: 23.67 MB / 0.5609 GB, free: 5.34 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)