Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 156.2 kB / 23.01 MB, free: 4.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.895/2.895, allocations: 394.2 MB / 0.6387 GB, free: 11.9 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002357/0.002357, allocations: 65.77 kB / 1.009 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9188/0.9212, allocations: 181.8 MB / 1.187 GB, free: 16.21 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004003/0.9252, allocations: 2.525 MB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.9266, allocations: 0.7651 MB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.9267, allocations: 3.719 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001269/0.928, allocations: 0.5384 MB / 1.19 GB, free: 13.74 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.9282, allocations: 111.7 kB / 1.19 GB, free: 13.68 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.9286, allocations: 109 kB / 1.191 GB, free: 13.63 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002655/0.9288, allocations: 200.8 kB / 1.191 GB, free: 13.54 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.9292, allocations: 132.7 kB / 1.191 GB, free: 13.47 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.9293, allocations: 85.64 kB / 1.191 GB, free: 13.44 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.9296, allocations: 97.03 kB / 1.191 GB, free: 13.4 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 2.761e-05/0.9296, allocations: 12.47 kB / 1.191 GB, free: 13.4 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.9298, allocations: 100.3 kB / 1.191 GB, free: 13.37 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 8.485e-05/0.9299, allocations: 56.77 kB / 1.191 GB, free: 13.35 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.9299, allocations: 64.61 kB / 1.191 GB, free: 13.31 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003432/0.9303, allocations: 222.4 kB / 1.191 GB, free: 13.24 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.9303, allocations: 1.906 kB / 1.191 GB, free: 13.24 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.563e-06/0.9303, allocations: 0 / 1.191 GB, free: 13.24 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.331e-06/0.9303, allocations: 0 / 1.191 GB, free: 13.24 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0006079/0.9309, allocations: 379.1 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.9309, allocations: 9.531 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.9313, allocations: 43.81 kB / 1.192 GB, free: 12.9 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002232/0.9316, allocations: 161.3 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.9316, allocations: 18.11 kB / 1.192 GB, free: 12.73 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.44e-05/0.9316, allocations: 12.56 kB / 1.192 GB, free: 12.73 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.932, allocations: 257.2 kB / 1.192 GB, free: 12.57 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.932, allocations: 0 / 1.192 GB, free: 12.57 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.932, allocations: 9.75 kB / 1.192 GB, free: 12.56 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.595e-05/0.932, allocations: 18.94 kB / 1.192 GB, free: 12.56 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.9323, allocations: 152.8 kB / 1.192 GB, free: 12.5 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008027/0.9331, allocations: 0.7805 MB / 1.193 GB, free: 11.83 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 9.34e-05/0.9332, allocations: 35.86 kB / 1.193 GB, free: 11.8 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.279e-05/0.9332, allocations: 20.28 kB / 1.193 GB, free: 11.79 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.9332, allocations: 1.625 kB / 1.193 GB, free: 11.79 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.9332, allocations: 36.31 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.9332, allocations: 4 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of matching and sorting (n=4): time 0.0001847/0.9334, allocations: 69.44 kB / 1.193 GB, free: 11.7 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.9334, allocations: 56.41 kB / 1.193 GB, free: 11.63 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.9336, allocations: 151.5 kB / 1.194 GB, free: 11.51 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.9336, allocations: 26.31 kB / 1.194 GB, free: 11.48 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 5.962e-05/0.9336, allocations: 148.9 kB / 1.194 GB, free: 11.34 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.238e-05/0.9336, allocations: 15.86 kB / 1.194 GB, free: 11.33 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/0.9337, allocations: 30.34 kB / 1.194 GB, free: 11.31 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 4.77e-05/0.9337, allocations: 319.6 kB / 1.194 GB, free: 10.99 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.693e-05/0.9338, allocations: 31.77 kB / 1.194 GB, free: 10.97 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.496e-05/0.9338, allocations: 90.56 kB / 1.194 GB, free: 10.88 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001214/0.934, allocations: 124.2 kB / 1.194 GB, free: 10.76 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.934, allocations: 0 / 1.194 GB, free: 10.76 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001845/0.9341, allocations: 137.6 kB / 1.194 GB, free: 10.68 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.9342, allocations: 6.094 kB / 1.194 GB, free: 10.68 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.9342, allocations: 3.719 kB / 1.194 GB, free: 10.68 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.9342, allocations: 2.531 kB / 1.194 GB, free: 10.68 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.9343, allocations: 27.16 kB / 1.195 GB, free: 10.68 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.9343, allocations: 8.844 kB / 1.195 GB, free: 10.68 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.753e-05/0.9344, allocations: 20.55 kB / 1.195 GB, free: 10.66 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.9344, allocations: 6.828 kB / 1.195 GB, free: 10.66 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 8.525e-05/0.9345, allocations: 118.9 kB / 1.195 GB, free: 10.57 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.019e-05/0.9345, allocations: 94.55 kB / 1.195 GB, free: 10.46 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000115/0.9347, allocations: 123 kB / 1.195 GB, free: 10.35 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.264e-06/0.9347, allocations: 1.344 kB / 1.195 GB, free: 10.35 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001854/0.9348, allocations: 131 kB / 1.195 GB, free: 10.28 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.9349, allocations: 7.234 kB / 1.195 GB, free: 10.28 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.9349, allocations: 2.5 kB / 1.195 GB, free: 10.28 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.448e-06/0.9349, allocations: 7.406 kB / 1.195 GB, free: 10.27 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.935, allocations: 26.78 kB / 1.195 GB, free: 10.27 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.935, allocations: 11.94 kB / 1.195 GB, free: 10.26 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.803e-05/0.935, allocations: 12.02 kB / 1.195 GB, free: 10.25 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.935, allocations: 6.531 kB / 1.195 GB, free: 10.25 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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 6.742e-05/0.9351, allocations: 188.2 kB / 1.195 GB, free: 10.07 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.9351, allocations: 8.281 kB / 1.195 GB, free: 10.06 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.9352, allocations: 12.08 kB / 1.195 GB, free: 10.05 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.9352, allocations: 4.828 kB / 1.195 GB, free: 10.04 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.9352, allocations: 9.672 kB / 1.195 GB, free: 10.04 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.9352, allocations: 4 kB / 1.195 GB, free: 10.03 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.9355, allocations: 411 kB / 1.196 GB, free: 9.652 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.9355, allocations: 1.844 kB / 1.196 GB, free: 9.652 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.9355, allocations: 10.55 kB / 1.196 GB, free: 9.648 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.9355, allocations: 6.062 kB / 1.196 GB, free: 9.645 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.9355, allocations: 1.094 kB / 1.196 GB, free: 9.645 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.9355, allocations: 1.797 kB / 1.196 GB, free: 9.645 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.9356, allocations: 2.062 kB / 1.196 GB, free: 9.645 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001149/0.9357, allocations: 113.7 kB / 1.196 GB, free: 9.535 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.9357, allocations: 14.88 kB / 1.196 GB, free: 9.527 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.9357, allocations: 6.172 kB / 1.196 GB, free: 9.523 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.17e-05/0.9357, allocations: 1.312 kB / 1.196 GB, free: 9.523 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.842e-05/0.9358, allocations: 3.953 kB / 1.196 GB, free: 9.523 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.9358, allocations: 2.047 kB / 1.196 GB, free: 9.523 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.593e-05/0.9358, allocations: 108.8 kB / 1.196 GB, free: 9.441 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.9358, allocations: 0 / 1.196 GB, free: 9.441 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003518/0.9362, allocations: 59.91 kB / 1.196 GB, free: 9.422 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 8.314e-05/0.9363, allocations: 102.9 kB / 1.196 GB, free: 9.328 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.9365, allocations: 102.1 kB / 1.196 GB, free: 9.297 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.9365, allocations: 0 / 1.196 GB, free: 9.297 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.755e-05/0.9365, allocations: 20.73 kB / 1.196 GB, free: 9.289 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.9368, allocations: 25.27 kB / 1.196 GB, free: 9.277 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004728/0.9373, allocations: 276.8 kB / 1.197 GB, free: 9.066 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.9374, allocations: 115.4 kB / 1.197 GB, free: 8.984 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.745e-05/0.9375, allocations: 26.11 kB / 1.197 GB, free: 8.98 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.9375, allocations: 13.77 kB / 1.197 GB, free: 8.973 MB / 1.076 GB Notification: Performance of SimCode: time 4.21e-07/0.9375, allocations: 1.312 kB / 1.197 GB, free: 8.973 MB / 1.076 GB Notification: Performance of Templates: time 0.0038/0.9413, allocations: 0.7752 MB / 1.197 GB, free: 8.852 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.788502727053128]