Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_latest_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.001586/0.001586, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009191/0.0009191, allocations: 80.86 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1856/0.1856, allocations: 38 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.093e-05/1.096e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.11, allocations: 56.32 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3904/0.5004, allocations: 93.7 MB / 0.5476 GB, free: 1.102 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/0.5008, allocations: 87.95 kB / 0.5476 GB, free: 1.016 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01872/0.5195, allocations: 6.61 MB / 0.5541 GB, free: 10.35 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5196, allocations: 0 / 0.5541 GB, free: 10.35 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.5196, allocations: 8 kB / 0.5541 GB, free: 10.34 MB / 395.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.0007931/0.5204, allocations: 0.5543 MB / 0.5546 GB, free: 9.746 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.5204, allocations: 12.03 kB / 0.5547 GB, free: 9.734 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.503e-05/0.5205, allocations: 35.92 kB / 0.5547 GB, free: 9.699 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.5218, allocations: 0.5912 MB / 0.5553 GB, free: 9.066 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.5218, allocations: 8 kB / 0.5553 GB, free: 9.059 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.5219, allocations: 16 kB / 0.5553 GB, free: 9.043 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003398/0.5222, allocations: 185 kB / 0.5555 GB, free: 8.859 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.5226, allocations: 281.7 kB / 0.5557 GB, free: 8.555 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.5226, allocations: 4 kB / 0.5557 GB, free: 8.551 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.5227, allocations: 0 / 0.5557 GB, free: 8.551 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.5227, allocations: 4 kB / 0.5557 GB, free: 8.547 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001459/0.5241, allocations: 1.301 MB / 0.557 GB, free: 7.164 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003021/0.5245, allocations: 145.1 kB / 0.5571 GB, free: 7.004 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.866e-05/0.5246, allocations: 57.75 kB / 0.5572 GB, free: 6.941 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.5246, allocations: 0 / 0.5572 GB, free: 6.941 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.5246, allocations: 38.56 kB / 0.5572 GB, free: 6.895 MB / 395.1 MB Notification: Performance of pre-optimization done (n=12): time 9.72e-07/0.5246, allocations: 0 / 0.5572 GB, free: 6.895 MB / 395.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005083/0.5251, allocations: 291.8 kB / 0.5575 GB, free: 6.602 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.5252, allocations: 85.11 kB / 0.5576 GB, free: 6.5 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.5254, allocations: 214.3 kB / 0.5578 GB, free: 6.281 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.5255, allocations: 25.7 kB / 0.5578 GB, free: 6.25 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.5256, allocations: 199.6 kB / 0.558 GB, free: 6.051 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.5257, allocations: 47.3 kB / 0.5581 GB, free: 6.004 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-06/0.5257, allocations: 0 / 0.5581 GB, free: 6.004 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.5259, allocations: 338.8 kB / 0.5584 GB, free: 5.664 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-05/0.526, allocations: 55.95 kB / 0.5584 GB, free: 5.609 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.5261, allocations: 133.6 kB / 0.5586 GB, free: 5.434 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.5262, allocations: 72.55 kB / 0.5586 GB, free: 5.363 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.5262, allocations: 4 kB / 0.5586 GB, free: 5.359 MB / 395.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003203/0.5265, allocations: 222.7 kB / 0.5589 GB, free: 5.137 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.5266, allocations: 8 kB / 0.5589 GB, free: 5.129 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.5266, allocations: 4.438 kB / 0.5589 GB, free: 5.125 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.5266, allocations: 4 kB / 0.5589 GB, free: 5.121 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001824/0.5268, allocations: 51.91 kB / 0.5589 GB, free: 5.07 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.5268, allocations: 11.92 kB / 0.5589 GB, free: 5.059 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.5269, allocations: 4 kB / 0.5589 GB, free: 5.055 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.527, allocations: 8 kB / 0.5589 GB, free: 5.047 MB / 395.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 () * 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 9.257e-05/0.5271, allocations: 120.8 kB / 0.5591 GB, free: 4.922 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002334/0.5273, allocations: 157.3 kB / 0.5592 GB, free: 4.762 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.5273, allocations: 23.72 kB / 0.5592 GB, free: 4.738 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002849/0.5276, allocations: 183.4 kB / 0.5594 GB, free: 4.555 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.5277, allocations: 4 kB / 0.5594 GB, free: 4.551 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5277, allocations: 3.984 kB / 0.5594 GB, free: 4.547 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.5277, allocations: 0 / 0.5594 GB, free: 4.547 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005604/0.5282, allocations: 0.5021 MB / 0.5599 GB, free: 4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.5283, allocations: 0 / 0.5599 GB, free: 4 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001377/0.5284, allocations: 31.92 kB / 0.5599 GB, free: 3.969 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5284, allocations: 0 / 0.5599 GB, free: 3.969 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.5284, allocations: 8.031 kB / 0.5599 GB, free: 3.961 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.5284, allocations: 0 / 0.5599 GB, free: 3.961 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.5284, allocations: 0 / 0.5599 GB, free: 3.961 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.5287, allocations: 301.3 kB / 0.5602 GB, free: 3.633 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.258e-05/0.5288, allocations: 108.8 kB / 0.5603 GB, free: 3.508 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.5289, allocations: 7.953 kB / 0.5603 GB, free: 3.5 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.529, allocations: 0 / 0.5603 GB, free: 3.5 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.582e-05/0.529, allocations: 11.98 kB / 0.5604 GB, free: 3.488 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.529, allocations: 4 kB / 0.5604 GB, free: 3.484 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.5292, allocations: 173.9 kB / 0.5605 GB, free: 3.312 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5292, allocations: 0 / 0.5605 GB, free: 3.312 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003162/0.5295, allocations: 52 kB / 0.5606 GB, free: 3.262 MB / 395.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 () * 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.0006167/0.5301, allocations: 0.9893 MB / 0.5615 GB, free: 2.23 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002235/0.5304, allocations: 152.3 kB / 0.5617 GB, free: 2.082 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.5304, allocations: 0 / 0.5617 GB, free: 2.082 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 9.088e-05/0.5305, allocations: 67.91 kB / 0.5617 GB, free: 2.016 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.5308, allocations: 48.81 kB / 0.5618 GB, free: 1.965 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007764/0.5316, allocations: 393.8 kB / 0.5622 GB, free: 1.539 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.532, allocations: 0.8027 MB / 0.563 GB, free: 0.7109 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.5321, allocations: 42.05 kB / 0.563 GB, free: 0.6719 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001248/0.5322, allocations: 91.39 kB / 0.5631 GB, free: 0.582 MB / 395.1 MB Notification: Performance of SimCode: time 2.6e-07/0.5322, allocations: 3.938 kB / 0.5631 GB, free: 0.5781 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02277/0.555, allocations: 4.261 MB / 0.5672 GB, free: 12.32 MB / 411.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/0.5553, allocations: 150.1 kB / 0.5674 GB, free: 12.12 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.399, allocations: 0 / 0.5674 GB, free: 12.12 MB / 411.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat does not exist to compare? outputFormat=mat