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.001961/0.001961, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.002223/0.002223, allocations: 200 kB / 18.01 MB, free: 5.055 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.369/1.369, 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.1699/0.1699, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 63.91 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.327, allocations: 58.06 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.005322/0.3324, allocations: 4.047 MB / 0.5076 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.3338, allocations: 0.9033 MB / 0.5085 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.334, allocations: 11.78 kB / 0.5085 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.3343, allocations: 50.62 kB / 0.5085 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005092/0.3348, allocations: 181 kB / 0.5087 GB, free: 3.883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.335, allocations: 87.5 kB / 0.5088 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004313/0.3355, allocations: 406.3 kB / 0.5092 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002795/0.3358, allocations: 116.8 kB / 0.5093 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.3361, allocations: 197.1 kB / 0.5095 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.3364, allocations: 201 kB / 0.5097 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.612e-05/0.3365, allocations: 20.06 kB / 0.5097 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.379e-05/0.3366, allocations: 22.16 kB / 0.5097 GB, free: 3.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000138/0.3367, allocations: 109 kB / 0.5098 GB, free: 3.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.3369, allocations: 148.4 kB / 0.5099 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.3373, allocations: 317.5 kB / 0.5102 GB, free: 3.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3373, allocations: 0 / 0.5102 GB, free: 3.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3373, allocations: 0 / 0.5102 GB, free: 3.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.3373, allocations: 4 kB / 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.0009963/0.3383, allocations: 0.6207 MB / 0.5108 GB, free: 2.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.3383, allocations: 12.98 kB / 0.5109 GB, free: 2.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.816e-05/0.3384, allocations: 60.11 kB / 0.5109 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.3385, allocations: 32 kB / 0.5109 GB, free: 2.617 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004111/0.3389, allocations: 339.2 kB / 0.5113 GB, free: 2.348 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.3389, allocations: 21.69 kB / 0.5113 GB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.519e-05/0.3389, allocations: 31.47 kB / 0.5113 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004318/0.3394, allocations: 314 kB / 0.5116 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.3394, allocations: 4.734 kB / 0.5116 GB, free: 2.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.48e-05/0.3394, allocations: 11.38 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.3395, allocations: 5.969 kB / 0.5116 GB, free: 2.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003375/0.3398, allocations: 214.2 kB / 0.5118 GB, free: 2.066 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.3413, allocations: 1.337 MB / 0.5132 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.3417, allocations: 152 kB / 0.5133 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.3419, allocations: 59.19 kB / 0.5134 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.3419, allocations: 10.14 kB / 0.5134 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.3419, allocations: 40.33 kB / 0.5134 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.432e-06/0.342, allocations: 0 / 0.5134 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008818/0.3428, allocations: 365 kB / 0.5138 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.3429, allocations: 82.98 kB / 0.5138 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.3432, allocations: 261.6 kB / 0.5141 GB, free: 388 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.3432, allocations: 27.48 kB / 0.5141 GB, free: 356 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.3433, allocations: 199.8 kB / 0.5143 GB, free: 184 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.531e-05/0.3434, allocations: 45.73 kB / 0.5143 GB, free: 148 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.3435, allocations: 50.25 kB / 0.5144 GB, free: 112 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.3436, allocations: 340.8 kB / 0.5147 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.3437, allocations: 53.52 kB / 0.5148 GB, free: 15.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.3439, allocations: 151.3 kB / 0.5149 GB, free: 15.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.3443, allocations: 231.4 kB / 0.5151 GB, free: 15.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3443, allocations: 5.156 kB / 0.5151 GB, free: 15.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004055/0.3447, allocations: 248.4 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3447, allocations: 6 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3447, allocations: 3.562 kB / 0.5154 GB, free: 15.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.3448, allocations: 10.47 kB / 0.5154 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.345, allocations: 51.11 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.345, allocations: 6.312 kB / 0.5154 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.3451, allocations: 8.219 kB / 0.5155 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.3452, allocations: 15.28 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.0001522/0.3453, allocations: 158.4 kB / 0.5156 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.704e-05/0.3454, allocations: 23.06 kB / 0.5156 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000331/0.3457, allocations: 197.5 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3457, allocations: 1.656 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3457, allocations: 5.969 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3458, allocations: 2.391 kB / 0.5158 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000678/0.3464, allocations: 0.5565 MB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3465, allocations: 0 / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.3466, allocations: 26.22 kB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3466, allocations: 1.25 kB / 0.5164 GB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.3466, allocations: 7.516 kB / 0.5164 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.3466, allocations: 5.25 kB / 0.5164 GB, free: 14.63 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3466, allocations: 9.094 kB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.347, allocations: 289 kB / 0.5167 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.767e-05/0.347, allocations: 97.2 kB / 0.5168 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.3471, allocations: 6.844 kB / 0.5168 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.3472, allocations: 6.031 kB / 0.5168 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.3472, allocations: 17.27 kB / 0.5168 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3472, allocations: 8 kB / 0.5168 GB, free: 14.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.3475, allocations: 184.6 kB / 0.517 GB, free: 14.19 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3475, allocations: 0 / 0.517 GB, free: 14.19 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003868/0.3479, allocations: 47.84 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.0008013/0.3487, allocations: 0.8358 MB / 0.5179 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003516/0.349, allocations: 157.6 kB / 0.518 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.349, allocations: 1 kB / 0.518 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.3492, allocations: 74.19 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.0005293/0.3497, allocations: 60.61 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.003013/0.3527, 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.0003932/0.3532, allocations: 0.7834 MB / 0.5214 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.3533, allocations: 39.45 kB / 0.5214 GB, free: 10.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.3535, allocations: 91.66 kB / 0.5215 GB, free: 10.68 MB / 398.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3535, allocations: 0 / 0.5215 GB, free: 10.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.3773, allocations: 5.028 MB / 0.5264 GB, free: 10.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/7.964, allocations: 9.172 kB / 0.5265 GB, free: 10.03 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