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.001538/0.001538, allocations: 111.1 kB / 17.06 MB, free: 6.113 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.001891/0.001891, allocations: 199 kB / 18 MB, free: 5.188 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1947/0.1947, allocations: 38.04 MB / 329.9 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001307, allocations: 67.89 kB / 457.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3848/0.3861, allocations: 58.04 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.004766/0.3909, allocations: 4.047 MB / 0.5076 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.3923, allocations: 0.8944 MB / 0.5084 GB, free: 4.031 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001964/0.3925, allocations: 14.78 kB / 0.5085 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.3928, allocations: 47.3 kB / 0.5085 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005699/0.3934, allocations: 188.2 kB / 0.5087 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.3937, allocations: 87.34 kB / 0.5088 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005156/0.3942, allocations: 404.1 kB / 0.5092 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002327/0.3944, allocations: 119 kB / 0.5093 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.3947, allocations: 193.3 kB / 0.5095 GB, free: 3.535 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003555/0.3951, allocations: 201.6 kB / 0.5096 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.202e-05/0.3952, allocations: 20 kB / 0.5097 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.506e-05/0.3952, allocations: 20.97 kB / 0.5097 GB, free: 3.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.3954, allocations: 104.8 kB / 0.5098 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.3955, allocations: 153.5 kB / 0.5099 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.3959, allocations: 316.6 kB / 0.5102 GB, free: 3.203 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3959, allocations: 3.938 kB / 0.5102 GB, free: 3.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3959, allocations: 5.125 kB / 0.5102 GB, free: 3.195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.396, allocations: 0 / 0.5102 GB, free: 3.195 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.0009972/0.397, allocations: 0.6153 MB / 0.5108 GB, free: 2.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.397, allocations: 13.86 kB / 0.5109 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.111e-05/0.3971, allocations: 55.66 kB / 0.5109 GB, free: 2.641 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.752e-05/0.3971, allocations: 36.56 kB / 0.5109 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.3977, allocations: 343.1 kB / 0.5113 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.3977, allocations: 17.7 kB / 0.5113 GB, free: 2.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.3978, allocations: 27.03 kB / 0.5113 GB, free: 2.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004723/0.3983, allocations: 319.2 kB / 0.5116 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3983, allocations: 0 / 0.5116 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.3983, allocations: 15.5 kB / 0.5116 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.3983, allocations: 5.844 kB / 0.5116 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003711/0.3987, allocations: 217.4 kB / 0.5118 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.4003, allocations: 1.343 MB / 0.5132 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.4006, allocations: 152.1 kB / 0.5133 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.216e-05/0.4007, allocations: 63.05 kB / 0.5134 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.4008, allocations: 2.688 kB / 0.5134 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.915e-05/0.4008, allocations: 32.56 kB / 0.5134 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.4008, allocations: 4 kB / 0.5134 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007667/0.4016, allocations: 368 kB / 0.5137 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.4016, allocations: 84.17 kB / 0.5138 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.4018, allocations: 261.5 kB / 0.5141 GB, free: 388 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.4019, allocations: 31.62 kB / 0.5141 GB, free: 352 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.402, allocations: 199 kB / 0.5143 GB, free: 180 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.402, allocations: 41.2 kB / 0.5143 GB, free: 148 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.784e-05/0.4021, allocations: 55.95 kB / 0.5144 GB, free: 108 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4022, allocations: 335.3 kB / 0.5147 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4023, allocations: 53.33 kB / 0.5148 GB, free: 15.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.4025, allocations: 151.3 kB / 0.5149 GB, free: 15.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.4028, allocations: 228.7 kB / 0.5151 GB, free: 15.44 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4028, allocations: 5.375 kB / 0.5151 GB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003665/0.4031, allocations: 247.2 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.4032, allocations: 6.75 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.4032, allocations: 4.094 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.4032, allocations: 9.266 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.4034, allocations: 46.8 kB / 0.5154 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.4034, allocations: 6.5 kB / 0.5154 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.4035, allocations: 8.953 kB / 0.5154 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.549e-05/0.4036, allocations: 18.61 kB / 0.5155 GB, free: 15.3 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.0001547/0.4037, allocations: 153.6 kB / 0.5156 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.4038, allocations: 23.56 kB / 0.5156 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000355/0.4042, allocations: 200.3 kB / 0.5158 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.4042, allocations: 8.922 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4042, allocations: 0 / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4042, allocations: 1.562 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007674/0.405, allocations: 0.5573 MB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.405, allocations: 1.406 kB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/0.4051, allocations: 33.98 kB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.4051, allocations: 2.047 kB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.4052, allocations: 5.125 kB / 0.5164 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.4052, allocations: 10.86 kB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4052, allocations: 5.125 kB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003227/0.4055, allocations: 293.6 kB / 0.5167 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.393e-05/0.4056, allocations: 95.33 kB / 0.5168 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.274e-05/0.4056, allocations: 2.484 kB / 0.5168 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.4058, allocations: 11.72 kB / 0.5168 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.4058, allocations: 16.83 kB / 0.5168 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.4058, allocations: 8.656 kB / 0.5168 GB, free: 14.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.406, allocations: 182.6 kB / 0.517 GB, free: 14.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.406, allocations: 0 / 0.517 GB, free: 14.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000351/0.4064, allocations: 49.38 kB / 0.5171 GB, free: 14.18 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.0007382/0.4071, allocations: 0.8358 MB / 0.5179 GB, free: 13.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.4075, allocations: 153 kB / 0.518 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4075, allocations: 1.406 kB / 0.518 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.4076, allocations: 75.42 kB / 0.5181 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.4081, allocations: 59.36 kB / 0.5182 GB, free: 13.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003213/0.4114, allocations: 2.553 MB / 0.5206 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.4118, allocations: 0.7755 MB / 0.5214 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.412, allocations: 42.89 kB / 0.5214 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.4121, allocations: 95.03 kB / 0.5215 GB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4121, allocations: 0 / 0.5215 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02472/0.4369, allocations: 5.025 MB / 0.5264 GB, free: 10.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.888/8.325, allocations: 12.58 kB / 0.5265 GB, free: 10.04 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 & /home/hudson/saved_omc/OMSimulator/install/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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor_res.mat","/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