Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-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(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.001136/0.001136, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009704/0.0009706, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.382/1.382, allocations: 223.2 MB / 241.1 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2983/0.2983, allocations: 38.08 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003104/0.0003104, allocations: 12 kB / 400.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2876, allocations: 59.15 MB / 459.2 MB, free: 30.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008573/0.2962, allocations: 7.847 MB / 467.1 MB, free: 24.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00559/0.3018, allocations: 2.699 MB / 469.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.3031, allocations: 59.44 kB / 469.8 MB, free: 22.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007999/0.3039, allocations: 256 kB / 470.1 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.3055, allocations: 493.9 kB / 470.5 MB, free: 22.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.307, allocations: 456.5 kB / 471 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.3081, allocations: 0.6749 MB / 471.7 MB, free: 21.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.3097, allocations: 1.02 MB / 472.7 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007547/0.3104, allocations: 403.9 kB / 473.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000682/0.3111, allocations: 463.5 kB / 473.5 MB, free: 20.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.771e-05/0.3112, allocations: 40.81 kB / 473.6 MB, free: 20.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005112/0.3117, allocations: 183.4 kB / 473.8 MB, free: 20.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004477/0.3122, allocations: 435.2 kB / 474.2 MB, free: 20.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.3124, allocations: 209.8 kB / 474.4 MB, free: 20.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001232/0.3137, allocations: 0.9824 MB / 475.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.3137, allocations: 0 / 475.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3137, allocations: 4.891 kB / 475.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.3137, allocations: 0 / 475.4 MB, free: 20.43 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00196/0.3157, allocations: 1.167 MB / 476.5 MB, free: 19.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3157, allocations: 9.219 kB / 476.5 MB, free: 19.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001479/0.3159, allocations: 137.6 kB / 476.7 MB, free: 19.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000989/0.3169, allocations: 185.6 kB / 476.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.3181, allocations: 0.6771 MB / 477.5 MB, free: 18.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.445e-05/0.3182, allocations: 65.91 kB / 477.6 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002207/0.3184, allocations: 104.4 kB / 477.7 MB, free: 18.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.3201, allocations: 1.204 MB / 478.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.604e-05/0.3201, allocations: 6.734 kB / 478.9 MB, free: 17.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-05/0.3202, allocations: 38.03 kB / 479 MB, free: 17.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000243/0.3205, allocations: 72.84 kB / 479 MB, free: 17.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.3219, allocations: 1.001 MB / 480 MB, free: 17.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005349/0.3272, allocations: 4.773 MB / 484.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.3283, allocations: 0.6781 MB / 485.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.3283, allocations: 12.14 kB / 485.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006352/0.329, allocations: 0.502 MB / 486 MB, free: 12.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=69): time 2.625e-06/0.329, allocations: 0 / 486 MB, free: 12.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.003674/0.3327, allocations: 2.936 MB / 488.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.3327, allocations: 170.8 kB / 489.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.3333, allocations: 0.5821 MB / 489.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.3333, allocations: 41.7 kB / 489.7 MB, free: 8.871 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.3335, allocations: 478.9 kB / 490.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.3337, allocations: 256.4 kB / 490.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/0.3337, allocations: 24 kB / 490.5 MB, free: 8.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.648e-05/0.3339, allocations: 394.7 kB / 490.8 MB, free: 7.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004439/0.3343, allocations: 365.8 kB / 491.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005423/0.3349, allocations: 0.627 MB / 491.8 MB, free: 6.621 MB / 350.1 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.00476/0.3396, allocations: 2.5 MB / 494.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3396, allocations: 0 / 494.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.001739/0.3414, allocations: 1.332 MB / 495.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.346e-05/0.3414, allocations: 37.64 kB / 495.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.3414, allocations: 8 kB / 495.7 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005197/0.342, allocations: 246.9 kB / 495.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.343, allocations: 279.5 kB / 496.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0055/0.3485, allocations: 5.629 MB / 0.4901 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007019/0.3492, allocations: 40.05 kB / 0.4901 GB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.416e-05/0.3493, allocations: 36 kB / 0.4902 GB, free: 12.02 MB / 366.1 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,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,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.0006114/0.3499, allocations: 371.1 kB / 0.4905 GB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3501, allocations: 79.02 kB / 0.4906 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002105/0.3522, allocations: 1.149 MB / 0.4917 GB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.3522, allocations: 8 kB / 0.4917 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3522, allocations: 8 kB / 0.4917 GB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.3523, allocations: 3.984 kB / 0.4917 GB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003905/0.3562, allocations: 2.242 MB / 0.4939 GB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.3562, allocations: 4.156 kB / 0.4939 GB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000952/0.3572, allocations: 195.8 kB / 0.4941 GB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000683/0.3578, allocations: 246.2 kB / 0.4943 GB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.358, allocations: 27.97 kB / 0.4944 GB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005434/0.3634, allocations: 5.567 MB / 0.4998 GB, free: 1.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3635, allocations: 7.969 kB / 0.4998 GB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/0.366, allocations: 1.703 MB / 0.5015 GB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000275/0.3663, allocations: 152.2 kB / 0.5016 GB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.3665, allocations: 23.98 kB / 0.5016 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004014/0.3669, allocations: 27.98 kB / 0.5017 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.367, allocations: 68.3 kB / 0.5017 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.338e-05/0.3671, allocations: 20 kB / 0.5018 GB, free: 15.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005236/0.3676, allocations: 411 kB / 0.5021 GB, free: 15.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3676, allocations: 4 kB / 0.5021 GB, free: 15.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001085/0.3687, allocations: 272 kB / 0.5024 GB, free: 14.83 MB / 382.1 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.002826/0.3715, allocations: 2.683 MB / 0.505 GB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.3737, allocations: 1.392 MB / 0.5064 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3737, allocations: 0 / 0.5064 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.375, allocations: 0.9058 MB / 0.5073 GB, free: 9.668 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008952/0.3759, allocations: 161.2 kB / 0.5074 GB, free: 9.516 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.3863, allocations: 11.57 MB / 0.5187 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006897/0.3871, allocations: 1.127 MB / 0.5198 GB, free: 12.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005742/0.3876, allocations: 218.5 kB / 0.52 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003847/0.388, allocations: 331.3 kB / 0.5203 GB, free: 11.95 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.388, allocations: 0 / 0.5203 GB, free: 11.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.4226, allocations: 17.76 MB / 0.5377 GB, free: 10.44 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002007/0.4228, allocations: 221.4 kB / 0.5379 GB, free: 10.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.093/2.516, allocations: 0 / 0.5379 GB, free: 10.19 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat does not exist to compare? outputFormat=mat