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.001329/0.00133, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.00137/0.00137, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.383/1.383, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1694/0.1694, allocations: 37.99 MB / 308.6 MB, free: 6.242 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.001363/0.001363, allocations: 83 kB / 374.7 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2422, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005087/0.2473, allocations: 4.689 MB / 434.7 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.249, allocations: 1.134 MB / 435.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002141/0.2492, allocations: 27.81 kB / 435.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002192/0.2495, allocations: 43.69 kB / 435.9 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.2499, allocations: 163.2 kB / 436 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001738/0.2501, allocations: 79.91 kB / 436.1 MB, free: 13.6 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.2504, allocations: 0.557 MB / 436.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.2506, allocations: 105.6 kB / 436.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.2508, allocations: 159.2 kB / 436.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003002/0.2512, allocations: 215.2 kB / 437.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.831e-05/0.2512, allocations: 16 kB / 437.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.713e-05/0.2513, allocations: 12 kB / 437.2 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.2514, allocations: 103.7 kB / 437.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001278/0.2515, allocations: 143.2 kB / 437.4 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.2518, allocations: 294.9 kB / 437.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2518, allocations: 3.984 kB / 437.7 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2518, allocations: 4 kB / 437.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.2518, allocations: 0 / 437.7 MB, free: 12.01 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.001003/0.2528, allocations: 0.6168 MB / 438.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.2529, allocations: 12.02 kB / 438.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.403e-05/0.2529, allocations: 54.73 kB / 438.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.253, allocations: 40.47 kB / 438.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.2534, allocations: 315.1 kB / 438.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.2534, allocations: 20.92 kB / 438.7 MB, free: 10.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.2535, allocations: 27.94 kB / 438.8 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.2539, allocations: 324.4 kB / 439.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.2539, allocations: 3.938 kB / 439.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.618e-05/0.2539, allocations: 12 kB / 439.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.2539, allocations: 8 kB / 439.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002951/0.2542, allocations: 205.5 kB / 439.3 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.2555, allocations: 1.352 MB / 440.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003091/0.2558, allocations: 145.2 kB / 440.8 MB, free: 8.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.895e-05/0.2559, allocations: 57.75 kB / 440.9 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.2559, allocations: 4 kB / 440.9 MB, free: 8.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.2559, allocations: 34.56 kB / 440.9 MB, free: 8.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.2559, allocations: 3.938 kB / 440.9 MB, free: 8.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.000683/0.2566, allocations: 375.7 kB / 441.3 MB, free: 8.172 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.2567, allocations: 81.11 kB / 441.3 MB, free: 8.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.2569, allocations: 255 kB / 441.6 MB, free: 7.809 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.2569, allocations: 29.7 kB / 441.6 MB, free: 7.773 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.357e-05/0.257, allocations: 203.5 kB / 441.8 MB, free: 7.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.257, allocations: 51.28 kB / 441.9 MB, free: 7.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-05/0.2571, allocations: 49.7 kB / 441.9 MB, free: 7.465 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.2572, allocations: 338.9 kB / 442.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.248e-05/0.2572, allocations: 59.95 kB / 442.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/0.2574, allocations: 144.8 kB / 442.5 MB, free: 6.879 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.2576, allocations: 232.6 kB / 442.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2576, allocations: 0 / 442.7 MB, free: 6.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002695/0.2578, allocations: 248.6 kB / 442.9 MB, free: 6.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2579, allocations: 8 kB / 442.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2579, allocations: 4 kB / 442.9 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2579, allocations: 4.438 kB / 442.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.2581, allocations: 47.91 kB / 443 MB, free: 6.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2581, allocations: 8 kB / 443 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.2582, allocations: 19.89 kB / 443 MB, free: 6.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.519e-05/0.2582, allocations: 11.94 kB / 443 MB, free: 6.258 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.2583, allocations: 153.8 kB / 443.2 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.2584, allocations: 27.7 kB / 443.2 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.2587, allocations: 195.2 kB / 443.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2587, allocations: 0 / 443.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2587, allocations: 8 kB / 443.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2587, allocations: 0 / 443.4 MB, free: 5.867 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/0.2592, allocations: 0.5576 MB / 444 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2592, allocations: 0 / 444 MB, free: 5.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.2594, allocations: 31.98 kB / 444 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2594, allocations: 0 / 444 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.2594, allocations: 4 kB / 444 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.2594, allocations: 3.938 kB / 444 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2594, allocations: 0 / 444 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.2597, allocations: 296.8 kB / 444.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.27e-05/0.2597, allocations: 96.83 kB / 444.4 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.2597, allocations: 11.98 kB / 444.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.2599, allocations: 7.938 kB / 444.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.423e-05/0.2599, allocations: 11.98 kB / 444.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.2599, allocations: 8 kB / 444.4 MB, free: 4.746 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001252/0.2601, allocations: 182 kB / 444.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2601, allocations: 0 / 444.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.2604, allocations: 48 kB / 444.6 MB, free: 4.52 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004252/0.2608, allocations: 0.8318 MB / 445.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002433/0.261, allocations: 155.7 kB / 445.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2611, allocations: 7.938 kB / 445.6 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.903e-05/0.2612, allocations: 72.77 kB / 445.7 MB, free: 3.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004427/0.2616, allocations: 57.45 kB / 445.8 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.2637, allocations: 2.651 MB / 448.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.264, allocations: 0.7794 MB / 449.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000154/0.2642, allocations: 46.25 kB / 449.2 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.2643, allocations: 91.39 kB / 449.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2643, allocations: 0 / 449.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01355/0.2779, allocations: 4.645 MB / 454 MB, free: 10.98 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.2781, allocations: 202.1 kB / 454.2 MB, free: 10.71 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.77/2.048, allocations: 0 / 454.2 MB, free: 10.71 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/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)