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.001735/0.001735, allocations: 110.7 kB / 17.06 MB, free: 5.828 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.002648/0.002648, allocations: 200 kB / 18.01 MB, free: 4.938 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.428/1.428, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1777/0.1777, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4236, allocations: 58.06 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005698/0.4293, allocations: 4.039 MB / 0.5076 GB, free: 4.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001948/0.4313, allocations: 0.9053 MB / 0.5085 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.4315, allocations: 10.84 kB / 0.5085 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.4317, allocations: 50.06 kB / 0.5085 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005808/0.4324, allocations: 181 kB / 0.5087 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.4327, allocations: 96.52 kB / 0.5088 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004757/0.4332, allocations: 403.7 kB / 0.5092 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002393/0.4334, allocations: 113.5 kB / 0.5093 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.4337, allocations: 189 kB / 0.5095 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003962/0.4341, allocations: 212 kB / 0.5097 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.751e-05/0.4342, allocations: 21.09 kB / 0.5097 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.66e-05/0.4343, allocations: 21.22 kB / 0.5097 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.4344, allocations: 104.8 kB / 0.5098 GB, free: 3.402 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001832/0.4346, allocations: 147.8 kB / 0.5099 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005057/0.4351, allocations: 320.4 kB / 0.5102 GB, free: 3.184 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.4352, allocations: 5 kB / 0.5102 GB, free: 3.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4352, allocations: 0 / 0.5102 GB, free: 3.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.4352, allocations: 0.75 kB / 0.5102 GB, free: 3.18 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.001096/0.4363, allocations: 0.6264 MB / 0.5109 GB, free: 2.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.4363, allocations: 13.61 kB / 0.5109 GB, free: 2.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.978e-05/0.4364, allocations: 56.75 kB / 0.5109 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.927e-05/0.4365, allocations: 36.55 kB / 0.511 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.4369, allocations: 351.3 kB / 0.5113 GB, free: 2.312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.437, allocations: 17.44 kB / 0.5113 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.437, allocations: 26.78 kB / 0.5113 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.4375, allocations: 318.9 kB / 0.5116 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.4375, allocations: 1.062 kB / 0.5116 GB, free: 2.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.4375, allocations: 11.12 kB / 0.5117 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.781e-05/0.4376, allocations: 5.25 kB / 0.5117 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004093/0.438, allocations: 221.9 kB / 0.5119 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001467/0.4395, allocations: 1.341 MB / 0.5132 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.4398, allocations: 144.2 kB / 0.5133 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.187e-05/0.4399, allocations: 67.53 kB / 0.5134 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.4399, allocations: 5.672 kB / 0.5134 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.4399, allocations: 32.94 kB / 0.5134 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.664e-06/0.44, allocations: 0 / 0.5134 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007153/0.4407, allocations: 376.3 kB / 0.5138 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.4407, allocations: 83.39 kB / 0.5139 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.4409, allocations: 254.9 kB / 0.5141 GB, free: 360 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.441, allocations: 29.7 kB / 0.5141 GB, free: 324 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.517e-05/0.4411, allocations: 208.6 kB / 0.5143 GB, free: 144 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.4411, allocations: 41.45 kB / 0.5144 GB, free: 112 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.575e-05/0.4412, allocations: 50.28 kB / 0.5144 GB, free: 76 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4413, allocations: 340.5 kB / 0.5147 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.664e-05/0.4414, allocations: 58.8 kB / 0.5148 GB, free: 15.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.4416, allocations: 150.3 kB / 0.5149 GB, free: 15.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.4419, allocations: 228.5 kB / 0.5152 GB, free: 15.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.4419, allocations: 1.219 kB / 0.5152 GB, free: 15.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003852/0.4423, allocations: 255.3 kB / 0.5154 GB, free: 15.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.4423, allocations: 6.859 kB / 0.5154 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.4423, allocations: 4.25 kB / 0.5154 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.4424, allocations: 5.266 kB / 0.5154 GB, free: 15.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.4425, allocations: 47.25 kB / 0.5155 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.4426, allocations: 10.62 kB / 0.5155 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.4427, allocations: 12.53 kB / 0.5155 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.4427, allocations: 18.92 kB / 0.5155 GB, free: 15.25 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.0001597/0.4429, allocations: 153.4 kB / 0.5156 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.443, allocations: 27.38 kB / 0.5157 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003682/0.4433, allocations: 197 kB / 0.5159 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4433, allocations: 1.5 kB / 0.5159 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.4434, allocations: 1 kB / 0.5159 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.4434, allocations: 2.25 kB / 0.5159 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007815/0.4442, allocations: 0.5611 MB / 0.5164 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4442, allocations: 0 / 0.5164 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/0.4443, allocations: 33.92 kB / 0.5164 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4443, allocations: 6.734 kB / 0.5165 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.4444, allocations: 1.781 kB / 0.5165 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.4444, allocations: 6.156 kB / 0.5165 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4444, allocations: 2.453 kB / 0.5165 GB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003518/0.4447, allocations: 295.4 kB / 0.5167 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.271e-05/0.4448, allocations: 96.8 kB / 0.5168 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.22e-05/0.4448, allocations: 2.969 kB / 0.5168 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.445, allocations: 9.875 kB / 0.5168 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.445, allocations: 12.92 kB / 0.5169 GB, free: 14.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.445, allocations: 12.75 kB / 0.5169 GB, free: 14.25 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001848/0.4452, allocations: 183.9 kB / 0.517 GB, free: 14.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4452, allocations: 0 / 0.517 GB, free: 14.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003913/0.4456, allocations: 53.14 kB / 0.5171 GB, free: 14.13 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.0007526/0.4464, allocations: 0.8285 MB / 0.5179 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.4467, allocations: 160.7 kB / 0.5181 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4467, allocations: 1.438 kB / 0.5181 GB, free: 13.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.4469, allocations: 74.84 kB / 0.5181 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005358/0.4474, allocations: 61.77 kB / 0.5182 GB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.4507, allocations: 2.555 MB / 0.5207 GB, free: 11.41 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.4512, allocations: 0.7792 MB / 0.5214 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.4513, allocations: 48.14 kB / 0.5215 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.4515, allocations: 90.44 kB / 0.5216 GB, free: 10.63 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.4515, allocations: 0 / 0.5216 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.4728, allocations: 4.949 MB / 0.5264 GB, free: 10.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/8.148, allocations: 12.58 kB / 0.5264 GB, free: 10 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