Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.0008844/0.0008846, allocations: 174.9 kB / 16.07 MB, free: 5.723 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.205/1.205, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0006837/0.0006836, allocations: 84.86 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1564/0.1564, allocations: 38.07 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003265/0.0003265, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2165, allocations: 56.33 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.003387/0.2199, allocations: 4.02 MB / 483.8 MB, free: 6.605 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2211, allocations: 1.057 MB / 484.8 MB, free: 5.848 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.2213, allocations: 24.66 kB / 484.8 MB, free: 5.836 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.2214, allocations: 54.55 kB / 484.9 MB, free: 5.809 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003924/0.2218, allocations: 190.5 kB / 485.1 MB, free: 5.703 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001909/0.222, allocations: 104 kB / 485.2 MB, free: 5.652 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.2224, allocations: 414.4 kB / 485.6 MB, free: 5.492 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.2226, allocations: 72.38 kB / 485.7 MB, free: 5.465 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.2227, allocations: 145 kB / 485.8 MB, free: 5.402 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.223, allocations: 155 kB / 486 MB, free: 5.352 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.223, allocations: 9.25 kB / 486 MB, free: 5.352 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.65e-05/0.2231, allocations: 14.28 kB / 486 MB, free: 5.348 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.069e-05/0.2232, allocations: 76.52 kB / 486.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.2233, allocations: 140 kB / 486.2 MB, free: 5.227 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.2235, allocations: 184.5 kB / 486.4 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2235, allocations: 0 / 486.4 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2235, allocations: 0 / 486.4 MB, free: 5.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.2235, allocations: 0 / 486.4 MB, free: 5.18 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006117/0.2241, allocations: 0.5194 MB / 486.9 MB, free: 4.727 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2242, allocations: 10.3 kB / 486.9 MB, free: 4.727 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.575e-05/0.2242, allocations: 54.53 kB / 487 MB, free: 4.676 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.2243, allocations: 29.56 kB / 487 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.2246, allocations: 306.7 kB / 487.3 MB, free: 4.402 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.2246, allocations: 21.34 kB / 487.3 MB, free: 4.391 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.2246, allocations: 21.81 kB / 487.3 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003358/0.225, allocations: 264.5 kB / 487.6 MB, free: 4.219 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.225, allocations: 3.938 kB / 487.6 MB, free: 4.215 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.225, allocations: 15.91 kB / 487.6 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.225, allocations: 5.922 kB / 487.6 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002335/0.2253, allocations: 154.2 kB / 487.8 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009255/0.2262, allocations: 1.179 MB / 488.9 MB, free: 3.141 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001036/0.2263, allocations: 74.3 kB / 489 MB, free: 3.078 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.081e-05/0.2264, allocations: 31.11 kB / 489 MB, free: 3.055 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.15e-05/0.2264, allocations: 4 kB / 489 MB, free: 3.051 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/0.2264, allocations: 36.5 kB / 489.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.2264, allocations: 1.375 kB / 489.1 MB, free: 3.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005286/0.2269, allocations: 413.2 kB / 489.5 MB, free: 2.648 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.227, allocations: 79.05 kB / 489.6 MB, free: 2.555 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.2272, allocations: 246.3 kB / 489.8 MB, free: 2.398 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.2272, allocations: 29.7 kB / 489.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.2273, allocations: 193.3 kB / 490 MB, free: 2.199 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.2273, allocations: 30.48 kB / 490 MB, free: 2.176 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-06/0.2273, allocations: 5.375 kB / 490.1 MB, free: 2.172 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.734e-05/0.2274, allocations: 333.5 kB / 490.4 MB, free: 1.848 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.517e-05/0.2274, allocations: 25.31 kB / 490.4 MB, free: 1.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.187e-05/0.2275, allocations: 127.1 kB / 490.5 MB, free: 1.699 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.2276, allocations: 163.2 kB / 490.7 MB, free: 1.535 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2276, allocations: 1.375 kB / 490.7 MB, free: 1.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002342/0.2279, allocations: 185.2 kB / 490.9 MB, free: 1.438 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.2279, allocations: 6.109 kB / 490.9 MB, free: 1.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2279, allocations: 8.062 kB / 490.9 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2279, allocations: 4.125 kB / 490.9 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.2281, allocations: 41 kB / 490.9 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.2281, allocations: 9.812 kB / 490.9 MB, free: 1.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.625e-05/0.2282, allocations: 7.406 kB / 490.9 MB, free: 1.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2282, allocations: 9 kB / 491 MB, free: 1.422 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 (22): * Single equations (assignments): 22 * 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 8.961e-05/0.2283, allocations: 151.4 kB / 491.1 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.2283, allocations: 21.27 kB / 491.1 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.2285, allocations: 98.48 kB / 491.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2285, allocations: 1.25 kB / 491.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2285, allocations: 2 kB / 491.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2285, allocations: 1.031 kB / 491.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003338/0.2288, allocations: 427.4 kB / 491.6 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2288, allocations: 4.031 kB / 491.6 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/0.2289, allocations: 19.89 kB / 491.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2289, allocations: 1.062 kB / 491.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.229, allocations: 3.406 kB / 491.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.229, allocations: 0 / 491.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.229, allocations: 1.344 kB / 491.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.2292, allocations: 235.3 kB / 491.9 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.2292, allocations: 91.94 kB / 492 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.2292, allocations: 2.406 kB / 492 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.999e-05/0.2293, allocations: 4.875 kB / 492 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.26e-05/0.2293, allocations: 9.766 kB / 492 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.2293, allocations: 2.781 kB / 492 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001146/0.2295, allocations: 169.1 kB / 492.2 MB, free: 440 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2295, allocations: 0 / 492.2 MB, free: 440 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.000268/0.2297, allocations: 39.91 kB / 492.2 MB, free: 436 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.0003636/0.2301, allocations: 0.7688 MB / 493 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.2303, allocations: 100.8 kB / 493.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2303, allocations: 0 / 493.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.305e-05/0.2303, allocations: 26.72 kB / 493.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.2308, allocations: 53.83 kB / 493.2 MB, free: 15.63 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.2325, allocations: 1.389 MB / 494.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.2328, allocations: 0.7622 MB / 495.3 MB, free: 14.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.333e-05/0.2329, allocations: 70.58 kB / 495.4 MB, free: 13.96 MB / 330.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2329, allocations: 0.9688 kB / 495.4 MB, free: 13.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.737/2.969, allocations: 3.442 MB / 498.8 MB, free: 13.47 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)