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.001049/0.001049, allocations: 110.2 kB / 17.07 MB, free: 6.016 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.001045/0.001045, allocations: 191 kB / 18 MB, free: 5.098 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.34/1.34, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1826/0.1826, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 59.89 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3142, allocations: 58.06 MB / 0.5036 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.00479/0.3191, allocations: 4.03 MB / 0.5076 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.3204, allocations: 0.9046 MB / 0.5084 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.3206, allocations: 15.19 kB / 0.5085 GB, free: 4.066 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.3208, allocations: 46.94 kB / 0.5085 GB, free: 4.039 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004731/0.3212, allocations: 185.1 kB / 0.5087 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.3215, allocations: 92.05 kB / 0.5088 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003972/0.3219, allocations: 400.1 kB / 0.5092 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.3221, allocations: 120.9 kB / 0.5093 GB, free: 3.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002668/0.3224, allocations: 192.8 kB / 0.5095 GB, free: 3.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003356/0.3227, allocations: 201.7 kB / 0.5096 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.3228, allocations: 20.5 kB / 0.5097 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.155e-05/0.3229, allocations: 20.94 kB / 0.5097 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.323, allocations: 108.3 kB / 0.5098 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.3231, allocations: 149.6 kB / 0.5099 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003709/0.3235, allocations: 317.8 kB / 0.5102 GB, free: 3.246 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3235, allocations: 3.938 kB / 0.5102 GB, free: 3.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3235, allocations: 4 kB / 0.5102 GB, free: 3.238 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.3235, allocations: 1.125 kB / 0.5102 GB, free: 3.238 MB / 382.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.0009604/0.3245, allocations: 0.6217 MB / 0.5108 GB, free: 2.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3246, allocations: 15.34 kB / 0.5109 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.942e-05/0.3246, allocations: 59.61 kB / 0.5109 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.975e-05/0.3247, allocations: 40.45 kB / 0.511 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.3251, allocations: 346.6 kB / 0.5113 GB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3251, allocations: 18.44 kB / 0.5113 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.3252, allocations: 23.28 kB / 0.5113 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004311/0.3256, allocations: 314 kB / 0.5116 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3256, allocations: 4 kB / 0.5116 GB, free: 2.172 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.3257, allocations: 17.67 kB / 0.5117 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3257, allocations: 6.594 kB / 0.5117 GB, free: 2.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003632/0.326, allocations: 217.2 kB / 0.5119 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3273, allocations: 1.343 MB / 0.5132 GB, free: 1.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.3277, allocations: 150.5 kB / 0.5133 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.23e-05/0.3278, allocations: 59.73 kB / 0.5134 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.3278, allocations: 1.031 kB / 0.5134 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.716e-05/0.3278, allocations: 33.78 kB / 0.5134 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.3278, allocations: 4 kB / 0.5134 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007119/0.3285, allocations: 372.9 kB / 0.5138 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.3286, allocations: 82.77 kB / 0.5138 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.3288, allocations: 259.3 kB / 0.5141 GB, free: 420 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.3288, allocations: 25.7 kB / 0.5141 GB, free: 388 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.744e-05/0.3289, allocations: 208.3 kB / 0.5143 GB, free: 208 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.293e-05/0.329, allocations: 49.75 kB / 0.5144 GB, free: 168 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.329, allocations: 50.44 kB / 0.5144 GB, free: 132 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.3292, allocations: 340.4 kB / 0.5147 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.401e-05/0.3293, allocations: 54.06 kB / 0.5148 GB, free: 15.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.3294, allocations: 152.6 kB / 0.5149 GB, free: 15.64 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.3297, allocations: 237.1 kB / 0.5152 GB, free: 15.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3297, allocations: 0 / 0.5152 GB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003987/0.3301, allocations: 247.7 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.3302, allocations: 7.422 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3302, allocations: 4.062 kB / 0.5154 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.3302, allocations: 10.45 kB / 0.5154 GB, free: 15.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.3304, allocations: 52.23 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.3304, allocations: 8.922 kB / 0.5155 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.3306, allocations: 14.66 kB / 0.5155 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.156e-05/0.3306, allocations: 13.7 kB / 0.5155 GB, free: 15.31 MB / 398.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.000153/0.3307, allocations: 156.7 kB / 0.5157 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.104e-05/0.3308, allocations: 27.56 kB / 0.5157 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003645/0.3312, allocations: 197.9 kB / 0.5159 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.3312, allocations: 5.969 kB / 0.5159 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3312, allocations: 1.375 kB / 0.5159 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3312, allocations: 1.219 kB / 0.5159 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000747/0.332, allocations: 0.5512 MB / 0.5164 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.332, allocations: 0.9375 kB / 0.5164 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/0.3321, allocations: 30.19 kB / 0.5164 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.3321, allocations: 5.922 kB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.3322, allocations: 7.297 kB / 0.5165 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.3322, allocations: 5.375 kB / 0.5165 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3322, allocations: 5.406 kB / 0.5165 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003598/0.3325, allocations: 292.8 kB / 0.5167 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.9e-05/0.3326, allocations: 96.19 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.3327, allocations: 7.078 kB / 0.5168 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.3328, allocations: 10.95 kB / 0.5169 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.3328, allocations: 16.34 kB / 0.5169 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.3329, allocations: 8.516 kB / 0.5169 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.333, allocations: 184.4 kB / 0.5171 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.333, allocations: 0 / 0.5171 GB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.3334, allocations: 47.91 kB / 0.5171 GB, free: 14.19 MB / 398.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.0006716/0.3341, allocations: 0.8287 MB / 0.5179 GB, free: 13.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.3344, allocations: 166.4 kB / 0.5181 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3344, allocations: 0.875 kB / 0.5181 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001411/0.3346, allocations: 70.33 kB / 0.5181 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.3351, allocations: 59.03 kB / 0.5182 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/0.3384, allocations: 2.564 MB / 0.5207 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.3389, allocations: 0.778 MB / 0.5215 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.339, allocations: 39.53 kB / 0.5215 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.3392, allocations: 86.83 kB / 0.5216 GB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3392, allocations: 4 kB / 0.5216 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.3633, allocations: 4.952 MB / 0.5264 GB, free: 10.06 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.407, allocations: 9.234 kB / 0.5264 GB, free: 10.05 MB / 398.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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches