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.002198/0.002198, allocations: 180.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.357/2.357, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 86.22 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3124/0.3124, allocations: 38 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.966e-05/1.974e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4931/0.5999, allocations: 93.7 MB / 0.5468 GB, free: 10.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.6002, allocations: 83.08 kB / 0.5469 GB, free: 10.78 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02714/0.6274, allocations: 6.608 MB / 0.5534 GB, free: 8.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.6274, allocations: 0 / 0.5534 GB, free: 8.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.519e-05/0.6275, allocations: 7.875 kB / 0.5534 GB, free: 8.062 MB / 362.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.00101/0.6285, allocations: 0.5573 MB / 0.5539 GB, free: 7.582 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.6285, allocations: 11.53 kB / 0.5539 GB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.522e-05/0.6286, allocations: 35.3 kB / 0.554 GB, free: 7.562 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.6305, allocations: 0.5891 MB / 0.5545 GB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.6306, allocations: 7.812 kB / 0.5546 GB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.6306, allocations: 11.72 kB / 0.5546 GB, free: 7.207 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005011/0.6312, allocations: 190.1 kB / 0.5547 GB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000523/0.6317, allocations: 276.4 kB / 0.555 GB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.6317, allocations: 4 kB / 0.555 GB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.6318, allocations: 0 / 0.555 GB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.6318, allocations: 7.75 kB / 0.555 GB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.6337, allocations: 1.307 MB / 0.5563 GB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.6342, allocations: 142.5 kB / 0.5564 GB, free: 5.914 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.6343, allocations: 55.12 kB / 0.5565 GB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.6343, allocations: 3.844 kB / 0.5565 GB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.6344, allocations: 34.55 kB / 0.5565 GB, free: 5.852 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.915e-06/0.6344, allocations: 0 / 0.5565 GB, free: 5.852 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008066/0.6352, allocations: 297.5 kB / 0.5568 GB, free: 5.707 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.6352, allocations: 77.11 kB / 0.5569 GB, free: 5.613 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002549/0.6355, allocations: 219.2 kB / 0.5571 GB, free: 5.488 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.6355, allocations: 29.64 kB / 0.5571 GB, free: 5.453 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.6357, allocations: 252.2 kB / 0.5574 GB, free: 5.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.6357, allocations: 46.36 kB / 0.5574 GB, free: 5.215 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.198e-05/0.6357, allocations: 0 / 0.5574 GB, free: 5.215 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.432e-05/0.6358, allocations: 325.9 kB / 0.5577 GB, free: 4.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.6359, allocations: 52.27 kB / 0.5578 GB, free: 4.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.6361, allocations: 139.5 kB / 0.5579 GB, free: 4.754 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.6363, allocations: 69.84 kB / 0.558 GB, free: 4.738 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.6363, allocations: 3.844 kB / 0.558 GB, free: 4.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004349/0.6368, allocations: 211.8 kB / 0.5582 GB, free: 4.648 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.6368, allocations: 7.375 kB / 0.5582 GB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.6368, allocations: 3.812 kB / 0.5582 GB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.6368, allocations: 3.844 kB / 0.5582 GB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003405/0.6372, allocations: 53.31 kB / 0.5582 GB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.447e-06/0.6372, allocations: 4.25 kB / 0.5582 GB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.6375, allocations: 7.844 kB / 0.5582 GB, free: 4.633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.6375, allocations: 7.812 kB / 0.5583 GB, free: 4.633 MB / 362.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 () * 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.0001098/0.6376, allocations: 120 kB / 0.5584 GB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003438/0.638, allocations: 154.8 kB / 0.5585 GB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.273e-05/0.638, allocations: 23.25 kB / 0.5585 GB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004279/0.6385, allocations: 183.5 kB / 0.5587 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6385, allocations: 0 / 0.5587 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.6385, allocations: 4.031 kB / 0.5587 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.6385, allocations: 3.688 kB / 0.5587 GB, free: 4.363 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007885/0.6393, allocations: 0.494 MB / 0.5592 GB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.6394, allocations: 7.781 kB / 0.5592 GB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002594/0.6396, allocations: 34.83 kB / 0.5592 GB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.6396, allocations: 3.938 kB / 0.5592 GB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.6397, allocations: 3.984 kB / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6397, allocations: 3.875 kB / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6397, allocations: 0 / 0.5593 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.6401, allocations: 304.9 kB / 0.5595 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.884e-05/0.6402, allocations: 99.55 kB / 0.5596 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.702e-05/0.6402, allocations: 7.672 kB / 0.5596 GB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.6404, allocations: 4 kB / 0.5597 GB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.15e-05/0.6405, allocations: 11.55 kB / 0.5597 GB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.6405, allocations: 7.219 kB / 0.5597 GB, free: 3.664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001661/0.6407, allocations: 166 kB / 0.5598 GB, free: 3.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6407, allocations: 3.938 kB / 0.5598 GB, free: 3.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005012/0.6412, allocations: 57.92 kB / 0.5599 GB, free: 3.562 MB / 362.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 () * 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.0006241/0.6418, allocations: 0.9806 MB / 0.5608 GB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003369/0.6422, allocations: 139 kB / 0.561 GB, free: 2.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.6422, allocations: 7.75 kB / 0.561 GB, free: 2.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.6424, allocations: 72.34 kB / 0.5611 GB, free: 2.629 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005543/0.6429, allocations: 49.45 kB / 0.5611 GB, free: 2.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.6441, allocations: 439.8 kB / 0.5615 GB, free: 2.316 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.6445, allocations: 0.794 MB / 0.5623 GB, free: 1.504 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/0.6447, allocations: 88.53 kB / 0.5624 GB, free: 1.473 MB / 362.7 MB Notification: Performance of SimCode: time 8.72e-07/0.6447, allocations: 0 / 0.5624 GB, free: 1.473 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.744/3.388, allocations: 4.484 MB / 0.5668 GB, free: 13.04 MB / 378.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)