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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 87.59 kB / 16.31 MB, free: 6.449 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.001012/0.001013, allocations: 180.4 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 223.3 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3406/0.3406, allocations: 38.07 MB / 330.4 MB, free: 14.15 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000323/0.0003233, allocations: 15.98 kB / 400.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3388, allocations: 59.15 MB / 459.3 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.00462/0.3435, allocations: 4.118 MB / 463.4 MB, free: 27.13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.3453, allocations: 1.032 MB / 464.5 MB, free: 26.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002219/0.3455, allocations: 26 kB / 464.5 MB, free: 26.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.3457, allocations: 59.19 kB / 464.6 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005554/0.3463, allocations: 210.2 kB / 464.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.3466, allocations: 106.6 kB / 464.9 MB, free: 26.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.3472, allocations: 473.9 kB / 465.3 MB, free: 26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002329/0.3474, allocations: 81.34 kB / 465.4 MB, free: 25.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.3477, allocations: 151.9 kB / 465.6 MB, free: 25.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003997/0.3481, allocations: 197.9 kB / 465.8 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.3481, allocations: 14.81 kB / 465.8 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.106e-05/0.3482, allocations: 11.59 kB / 465.8 MB, free: 25.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.3483, allocations: 98.09 kB / 465.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3484, allocations: 77.67 kB / 466 MB, free: 25.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.3488, allocations: 226.6 kB / 466.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/0.3488, allocations: 0.7031 kB / 466.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3488, allocations: 0 / 466.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.3489, allocations: 0 / 466.2 MB, free: 25.71 MB / 350.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.00104/0.3499, allocations: 0.5729 MB / 466.7 MB, free: 25.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.35, allocations: 8.688 kB / 466.8 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.983e-05/0.35, allocations: 56.42 kB / 466.8 MB, free: 25.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.59e-05/0.3501, allocations: 36.02 kB / 466.8 MB, free: 25.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000433/0.3505, allocations: 319.7 kB / 467.2 MB, free: 24.9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/0.3506, allocations: 13.72 kB / 467.2 MB, free: 24.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.3506, allocations: 29.56 kB / 467.2 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.3511, allocations: 313.6 kB / 467.5 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3512, allocations: 1.031 kB / 467.5 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.3512, allocations: 11.03 kB / 467.5 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.3512, allocations: 10.34 kB / 467.5 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.3516, allocations: 212 kB / 467.7 MB, free: 24.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001447/0.3531, allocations: 1.353 MB / 469.1 MB, free: 23.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.3534, allocations: 143.2 kB / 469.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.3535, allocations: 63.53 kB / 469.3 MB, free: 23.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.3536, allocations: 1.375 kB / 469.3 MB, free: 23.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/0.3536, allocations: 40.78 kB / 469.3 MB, free: 23.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.3536, allocations: 1.25 kB / 469.3 MB, free: 23.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.000852/0.3545, allocations: 361.9 kB / 469.7 MB, free: 23.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.3545, allocations: 83.77 kB / 469.8 MB, free: 23.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.3548, allocations: 257.6 kB / 470 MB, free: 22.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.3548, allocations: 29.7 kB / 470.1 MB, free: 22.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.355, allocations: 203.5 kB / 470.2 MB, free: 22.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/0.355, allocations: 49.75 kB / 470.3 MB, free: 22.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.355, allocations: 5.031 kB / 470.3 MB, free: 22.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.601e-05/0.3551, allocations: 336.2 kB / 470.6 MB, free: 22.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.3553, allocations: 49.59 kB / 470.7 MB, free: 22.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.3554, allocations: 155 kB / 470.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.3556, allocations: 80.19 kB / 470.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3556, allocations: 5.062 kB / 470.9 MB, free: 22.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00039/0.356, allocations: 247.2 kB / 471.2 MB, free: 22.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.356, allocations: 6.406 kB / 471.2 MB, free: 22.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.356, allocations: 3.375 kB / 471.2 MB, free: 22.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.3561, allocations: 5.5 kB / 471.2 MB, free: 22.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001977/0.3563, allocations: 57.09 kB / 471.2 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.3563, allocations: 7.969 kB / 471.2 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.3564, allocations: 10.47 kB / 471.2 MB, free: 22.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.3564, allocations: 10.22 kB / 471.3 MB, free: 22.03 MB / 350.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.0001508/0.3566, allocations: 164.8 kB / 471.4 MB, free: 21.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.3567, allocations: 23.78 kB / 471.4 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003527/0.357, allocations: 196.1 kB / 471.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.357, allocations: 2.344 kB / 471.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.357, allocations: 0.6562 kB / 471.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3571, allocations: 5.781 kB / 471.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006989/0.3578, allocations: 0.5559 MB / 472.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3578, allocations: 0.9688 kB / 472.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.3579, allocations: 29.47 kB / 472.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3579, allocations: 2.875 kB / 472.2 MB, free: 21.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.358, allocations: 6.125 kB / 472.2 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.358, allocations: 1.953 kB / 472.2 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.358, allocations: 1.125 kB / 472.2 MB, free: 21.35 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003528/0.3583, allocations: 295.5 kB / 472.5 MB, free: 21.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.3584, allocations: 96.52 kB / 472.6 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.851e-05/0.3585, allocations: 7.297 kB / 472.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.3586, allocations: 1.625 kB / 472.6 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.3586, allocations: 18.58 kB / 472.6 MB, free: 21.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.487e-05/0.3586, allocations: 8.828 kB / 472.7 MB, free: 21.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001859/0.3588, allocations: 180.5 kB / 472.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3588, allocations: 0 / 472.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.3592, allocations: 48.69 kB / 472.9 MB, free: 20.91 MB / 350.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.0005455/0.3597, allocations: 0.8328 MB / 473.7 MB, free: 20.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.3601, allocations: 156.7 kB / 473.9 MB, free: 20.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3601, allocations: 0 / 473.9 MB, free: 20.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.3602, allocations: 71.39 kB / 473.9 MB, free: 20.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005089/0.3607, allocations: 55.06 kB / 474 MB, free: 20.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.363, allocations: 1.537 MB / 475.5 MB, free: 19.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.3633, allocations: 0.7838 MB / 476.3 MB, free: 18.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001728/0.3635, allocations: 47.27 kB / 476.4 MB, free: 18.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.3636, allocations: 93.09 kB / 476.4 MB, free: 18.35 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3636, allocations: 0 / 476.4 MB, free: 18.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.3809, allocations: 4.603 MB / 481 MB, free: 16.75 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/0.3811, allocations: 189.4 kB / 481.2 MB, free: 16.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.166, allocations: 0 / 481.2 MB, free: 16.52 MB / 350.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) Environment - environmentSimulation: 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