Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.0009566/0.0009565, allocations: 172.6 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.201/1.201, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.000709/0.000709, allocations: 82.34 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1626/0.1626, allocations: 38.08 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.000326, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2285, allocations: 56.33 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.003753/0.2323, allocations: 4.14 MB / 483.9 MB, free: 6.531 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001447/0.2338, allocations: 1.079 MB / 485 MB, free: 5.758 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001948/0.234, allocations: 25.31 kB / 485 MB, free: 5.746 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001824/0.2342, allocations: 55.23 kB / 485 MB, free: 5.719 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004683/0.2347, allocations: 213.5 kB / 485.2 MB, free: 5.598 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.235, allocations: 115.6 kB / 485.4 MB, free: 5.539 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004406/0.2354, allocations: 466.6 kB / 485.8 MB, free: 5.363 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.2356, allocations: 97.12 kB / 485.9 MB, free: 5.336 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002198/0.2359, allocations: 152.4 kB / 486.1 MB, free: 5.273 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.2362, allocations: 201.4 kB / 486.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.2362, allocations: 11.28 kB / 486.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.91e-05/0.2363, allocations: 14.47 kB / 486.3 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.2364, allocations: 96.73 kB / 486.4 MB, free: 5.176 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.2366, allocations: 155.8 kB / 486.5 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002523/0.2368, allocations: 223 kB / 486.7 MB, free: 5.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2368, allocations: 0 / 486.7 MB, free: 5.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2368, allocations: 0 / 486.7 MB, free: 5.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.2369, allocations: 0 / 486.7 MB, free: 5.02 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008266/0.2377, allocations: 0.5734 MB / 487.3 MB, free: 4.543 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.2377, allocations: 8.969 kB / 487.3 MB, free: 4.543 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.164e-05/0.2378, allocations: 57.48 kB / 487.4 MB, free: 4.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.921e-05/0.2378, allocations: 32.44 kB / 487.4 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003301/0.2382, allocations: 332.8 kB / 487.7 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.2382, allocations: 13.84 kB / 487.8 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.483e-05/0.2382, allocations: 25.69 kB / 487.8 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004304/0.2387, allocations: 317.6 kB / 488.1 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2387, allocations: 1.281 kB / 488.1 MB, free: 4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.2387, allocations: 10.28 kB / 488.1 MB, free: 3.992 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2387, allocations: 6.859 kB / 488.1 MB, free: 3.992 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003307/0.2391, allocations: 220.2 kB / 488.3 MB, free: 3.922 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.2404, allocations: 1.35 MB / 489.7 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/0.2407, allocations: 138.6 kB / 489.8 MB, free: 2.758 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.927e-05/0.2408, allocations: 70.48 kB / 489.9 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2408, allocations: 2.078 kB / 489.9 MB, free: 2.715 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.2408, allocations: 35.88 kB / 489.9 MB, free: 2.672 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.2408, allocations: 1.375 kB / 489.9 MB, free: 2.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006614/0.2415, allocations: 363.1 kB / 490.3 MB, free: 2.488 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.2416, allocations: 80.03 kB / 490.3 MB, free: 2.395 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.2418, allocations: 259.8 kB / 490.6 MB, free: 2.234 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.2418, allocations: 31.02 kB / 490.6 MB, free: 2.199 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.2419, allocations: 203.5 kB / 490.8 MB, free: 2.027 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.2419, allocations: 45.11 kB / 490.9 MB, free: 1.992 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.046e-05/0.242, allocations: 5.156 kB / 490.9 MB, free: 1.988 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.813e-05/0.242, allocations: 340 kB / 491.2 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.071e-05/0.2421, allocations: 53.78 kB / 491.3 MB, free: 1.645 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001161/0.2422, allocations: 149.3 kB / 491.4 MB, free: 1.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.2425, allocations: 227 kB / 491.6 MB, free: 1.316 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.2425, allocations: 1.688 kB / 491.6 MB, free: 1.316 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003224/0.2428, allocations: 247.2 kB / 491.9 MB, free: 1.203 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2428, allocations: 6.281 kB / 491.9 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2428, allocations: 3.156 kB / 491.9 MB, free: 1.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.2429, allocations: 9.406 kB / 491.9 MB, free: 1.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.2431, allocations: 52.53 kB / 491.9 MB, free: 1.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.2431, allocations: 8.797 kB / 492 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001194/0.2432, allocations: 5.281 kB / 492 MB, free: 1.188 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.2432, allocations: 23.3 kB / 492 MB, free: 1.176 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 (25): * Single equations (assignments): 25 * 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.0001169/0.2434, allocations: 157.4 kB / 492.1 MB, free: 1.039 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.22e-05/0.2434, allocations: 23 kB / 492.2 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003201/0.2437, allocations: 198.5 kB / 492.4 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.2437, allocations: 2.594 kB / 492.4 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2437, allocations: 0.6094 kB / 492.4 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.2438, allocations: 2.141 kB / 492.4 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005818/0.2443, allocations: 0.5588 MB / 492.9 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.2444, allocations: 1.312 kB / 492.9 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001628/0.2445, allocations: 26.94 kB / 492.9 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2445, allocations: 5.25 kB / 492.9 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.2446, allocations: 2.203 kB / 493 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2446, allocations: 5.344 kB / 493 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.2446, allocations: 2.531 kB / 493 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.2448, allocations: 296.9 kB / 493.2 MB, free: 308 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.787e-05/0.2449, allocations: 97.39 kB / 493.3 MB, free: 200 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.2449, allocations: 5.859 kB / 493.3 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.245, allocations: 7.047 kB / 493.4 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.144e-05/0.2451, allocations: 8.438 kB / 493.4 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.2451, allocations: 12.53 kB / 493.4 MB, free: 184 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001362/0.2453, allocations: 178.1 kB / 493.6 MB, free: 80 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2453, allocations: 0 / 493.6 MB, free: 80 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003087/0.2456, allocations: 57.03 kB / 493.6 MB, free: 68 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.0005673/0.2461, allocations: 0.8243 MB / 494.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002779/0.2464, allocations: 158.4 kB / 494.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2464, allocations: 0 / 494.6 MB, free: 15.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.2466, allocations: 76.06 kB / 494.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.2471, allocations: 54.02 kB / 494.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.2492, allocations: 1.579 MB / 496.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.2496, allocations: 0.7793 MB / 497.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.2498, allocations: 92.28 kB / 497.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2498, allocations: 0 / 497.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.787/3.037, allocations: 3.979 MB / 0.4894 GB, free: 12.36 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)