Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.0009503/0.0009501, allocations: 171.6 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.266/1.266, 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.0006959/0.0006959, allocations: 84.86 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.1607/0.1607, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003264/0.0003265, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2297, allocations: 56.32 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004574/0.2343, allocations: 4.284 MB / 484 MB, free: 6.43 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.2358, allocations: 1.123 MB / 485.1 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001916/0.236, allocations: 25.78 kB / 485.2 MB, free: 5.617 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.2362, allocations: 57.09 kB / 485.2 MB, free: 5.59 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004761/0.2367, allocations: 225.9 kB / 485.4 MB, free: 5.461 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.2369, allocations: 116.1 kB / 485.6 MB, free: 5.406 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.2374, allocations: 0.5184 MB / 486.1 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.2377, allocations: 126.2 kB / 486.2 MB, free: 5.164 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002364/0.2379, allocations: 177.2 kB / 486.4 MB, free: 5.09 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.2383, allocations: 228.8 kB / 486.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.285e-05/0.2383, allocations: 14.31 kB / 486.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.34e-05/0.2384, allocations: 14.09 kB / 486.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.2385, allocations: 116.6 kB / 486.7 MB, free: 4.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001487/0.2386, allocations: 175.2 kB / 486.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002799/0.2389, allocations: 276.1 kB / 487.2 MB, free: 4.793 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2389, allocations: 1.031 kB / 487.2 MB, free: 4.793 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.239, allocations: 0 / 487.2 MB, free: 4.793 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.239, allocations: 0 / 487.2 MB, free: 4.793 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001042/0.24, allocations: 0.6327 MB / 487.8 MB, free: 4.309 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.2401, allocations: 10.5 kB / 487.8 MB, free: 4.309 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.179e-05/0.2401, allocations: 62.3 kB / 487.9 MB, free: 4.254 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.287e-05/0.2402, allocations: 38.66 kB / 487.9 MB, free: 4.234 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005011/0.2407, allocations: 391.5 kB / 488.3 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.2407, allocations: 19.11 kB / 488.3 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.613e-05/0.2408, allocations: 29.09 kB / 488.4 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005214/0.2413, allocations: 353.1 kB / 488.7 MB, free: 3.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.2413, allocations: 0 / 488.7 MB, free: 3.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.2414, allocations: 14.25 kB / 488.7 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.2414, allocations: 8.734 kB / 488.7 MB, free: 3.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.2418, allocations: 258.1 kB / 489 MB, free: 3.641 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/0.2433, allocations: 1.447 MB / 490.4 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.2436, allocations: 167.3 kB / 490.6 MB, free: 2.426 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.2437, allocations: 77.75 kB / 490.7 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.2437, allocations: 1.375 kB / 490.7 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.2437, allocations: 41.91 kB / 490.7 MB, free: 2.344 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 1.824e-06/0.2437, allocations: 3.938 kB / 490.7 MB, free: 2.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.001044/0.2448, allocations: 0.6801 MB / 491.4 MB, free: 1.883 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.2448, allocations: 80.52 kB / 491.5 MB, free: 1.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002781/0.2451, allocations: 296.7 kB / 491.8 MB, free: 1.625 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.2451, allocations: 31.08 kB / 491.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.2453, allocations: 220.6 kB / 492 MB, free: 1.406 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.2453, allocations: 55.02 kB / 492.1 MB, free: 1.363 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.2453, allocations: 5.375 kB / 492.1 MB, free: 1.359 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.642e-05/0.2454, allocations: 342.4 kB / 492.4 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.2455, allocations: 63.59 kB / 492.5 MB, free: 1.016 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001464/0.2457, allocations: 169.8 kB / 492.6 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002825/0.246, allocations: 250.7 kB / 492.9 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.246, allocations: 1.094 kB / 492.9 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000403/0.2464, allocations: 285.2 kB / 493.1 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2464, allocations: 6.469 kB / 493.1 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.2464, allocations: 3.656 kB / 493.2 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.2465, allocations: 4.875 kB / 493.2 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002432/0.2467, allocations: 63.59 kB / 493.2 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.2467, allocations: 10.44 kB / 493.2 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001569/0.2469, allocations: 13 kB / 493.2 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.2469, allocations: 11.69 kB / 493.3 MB, free: 0.5312 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001404/0.2471, allocations: 167.9 kB / 493.4 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.2471, allocations: 35.78 kB / 493.5 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/0.2475, allocations: 225.9 kB / 493.7 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2475, allocations: 6.781 kB / 493.7 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.2475, allocations: 0 / 493.7 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2475, allocations: 2.234 kB / 493.7 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007802/0.2483, allocations: 0.6203 MB / 494.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2483, allocations: 1.312 kB / 494.3 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.2485, allocations: 39.19 kB / 494.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2486, allocations: 0 / 494.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2486, allocations: 10.92 kB / 494.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2486, allocations: 1.406 kB / 494.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2486, allocations: 5.953 kB / 494.4 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005596/0.2492, allocations: 433.4 kB / 494.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.414e-05/0.2493, allocations: 103.6 kB / 494.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.2493, allocations: 10.7 kB / 494.9 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.2495, allocations: 6.938 kB / 494.9 MB, free: 15.44 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.2495, allocations: 22.34 kB / 494.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.2495, allocations: 5.281 kB / 494.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000231/0.2498, allocations: 214.3 kB / 495.1 MB, free: 15.31 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2498, allocations: 0 / 495.1 MB, free: 15.31 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003566/0.2502, allocations: 56.83 kB / 495.2 MB, free: 15.3 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007989/0.251, allocations: 0.9471 MB / 496.1 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003318/0.2513, allocations: 186.4 kB / 496.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.2513, allocations: 1.875 kB / 496.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.2515, allocations: 88.59 kB / 496.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005338/0.252, allocations: 73 kB / 496.5 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/0.2546, allocations: 1.881 MB / 498.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003759/0.255, allocations: 0.809 MB / 499.2 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.2552, allocations: 108.2 kB / 499.3 MB, free: 12.51 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2552, allocations: 0 / 499.3 MB, free: 12.51 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.765/3.02, allocations: 4.701 MB / 0.4922 GB, free: 10.63 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)