Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.0009648/0.000965, allocations: 87.42 kB / 16.31 MB, free: 6.461 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.001059/0.001059, allocations: 178.9 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.636/1.636, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.172/0.172, allocations: 38.06 MB / 309.7 MB, free: 6.031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004956/0.0004956, allocations: 12 kB / 376.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2391, allocations: 56.33 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004361/0.2435, allocations: 4.115 MB / 437.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.2451, allocations: 1.088 MB / 438.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.2453, allocations: 23.81 kB / 438.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.2456, allocations: 59.53 kB / 438.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004666/0.246, allocations: 202.9 kB / 438.4 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.2463, allocations: 111.9 kB / 438.5 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003545/0.2467, allocations: 466.4 kB / 439 MB, free: 12.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.2469, allocations: 85.11 kB / 439.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002013/0.2471, allocations: 155.2 kB / 439.2 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003089/0.2474, allocations: 191.4 kB / 439.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.2474, allocations: 12 kB / 439.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.832e-05/0.2475, allocations: 12 kB / 439.4 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.746e-05/0.2476, allocations: 99.69 kB / 439.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.611e-05/0.2477, allocations: 77.52 kB / 439.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002013/0.2479, allocations: 223.4 kB / 439.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.2479, allocations: 0 / 439.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.2479, allocations: 0 / 439.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.2479, allocations: 8 kB / 439.8 MB, free: 11.88 MB / 318.1 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.0008948/0.2488, allocations: 0.5699 MB / 440.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2488, allocations: 8.031 kB / 440.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.429e-05/0.2489, allocations: 66.47 kB / 440.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.365e-05/0.249, allocations: 39.48 kB / 440.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003391/0.2493, allocations: 306 kB / 440.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.2493, allocations: 20.56 kB / 440.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.2494, allocations: 20 kB / 440.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.2498, allocations: 320.5 kB / 441.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2498, allocations: 3.938 kB / 441.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.2498, allocations: 8 kB / 441.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2498, allocations: 7.953 kB / 441.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002819/0.2501, allocations: 217.5 kB / 441.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.2513, allocations: 1.348 MB / 442.8 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002678/0.2516, allocations: 145.2 kB / 442.9 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.266e-05/0.2517, allocations: 57.75 kB / 442.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.2517, allocations: 4.219 kB / 443 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.2517, allocations: 38.5 kB / 443 MB, free: 8.469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.2517, allocations: 0 / 443 MB, free: 8.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006348/0.2524, allocations: 374.8 kB / 443.4 MB, free: 8.098 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.2524, allocations: 81.05 kB / 443.4 MB, free: 8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.2526, allocations: 259 kB / 443.7 MB, free: 7.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.2526, allocations: 29.7 kB / 443.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.039e-05/0.2527, allocations: 199.6 kB / 443.9 MB, free: 7.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.792e-05/0.2527, allocations: 51.3 kB / 444 MB, free: 7.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-06/0.2527, allocations: 4 kB / 444 MB, free: 7.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.062e-05/0.2528, allocations: 338.9 kB / 444.3 MB, free: 7.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.499e-05/0.2529, allocations: 51.97 kB / 444.3 MB, free: 7.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.949e-05/0.253, allocations: 140.8 kB / 444.5 MB, free: 6.867 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.869e-05/0.2531, allocations: 83.91 kB / 444.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2531, allocations: 4 kB / 444.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002748/0.2534, allocations: 237 kB / 444.8 MB, free: 6.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2534, allocations: 11.94 kB / 444.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2534, allocations: 8.422 kB / 444.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.2534, allocations: 8 kB / 444.8 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.2536, allocations: 51.91 kB / 444.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.2536, allocations: 11.89 kB / 444.9 MB, free: 6.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.2537, allocations: 8 kB / 444.9 MB, free: 6.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.2537, allocations: 12 kB / 444.9 MB, free: 6.434 MB / 318.1 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.0001122/0.2539, allocations: 153.8 kB / 445.1 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-05/0.2539, allocations: 23.72 kB / 445.1 MB, free: 6.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.2542, allocations: 203.3 kB / 445.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2542, allocations: 0 / 445.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2542, allocations: 0 / 445.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2542, allocations: 7.953 kB / 445.3 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004973/0.2547, allocations: 0.5538 MB / 445.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2547, allocations: 0 / 445.8 MB, free: 5.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.2549, allocations: 27.92 kB / 445.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2549, allocations: 7.984 kB / 445.9 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.2549, allocations: 4 kB / 445.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.2549, allocations: 11.98 kB / 445.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2549, allocations: 3.938 kB / 445.9 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.2552, allocations: 288.8 kB / 446.2 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.385e-05/0.2552, allocations: 96.83 kB / 446.3 MB, free: 4.953 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.2553, allocations: 4 kB / 446.3 MB, free: 4.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.2554, allocations: 4 kB / 446.3 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.2554, allocations: 19.88 kB / 446.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.2554, allocations: 8 kB / 446.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.2556, allocations: 178 kB / 446.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2556, allocations: 0 / 446.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002976/0.2559, allocations: 52 kB / 446.5 MB, free: 4.691 MB / 318.1 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.0003865/0.2563, allocations: 0.8269 MB / 447.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.2565, allocations: 154.9 kB / 447.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2565, allocations: 0.875 kB / 447.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.926e-05/0.2566, allocations: 79.84 kB / 447.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.257, allocations: 57.31 kB / 447.7 MB, free: 3.547 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001531/0.2586, allocations: 1.523 MB / 449.2 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001677/0.2588, allocations: 0.7794 MB / 450 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001285/0.2589, allocations: 46.25 kB / 450 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.259, allocations: 91.39 kB / 450.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.259, allocations: 0 / 450.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01331/0.2723, allocations: 4.583 MB / 454.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/0.2725, allocations: 195.6 kB / 454.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/1.94, allocations: 3.938 kB / 454.9 MB, free: 12.2 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) Environment - environmentSimulation: