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.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: translateModel(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|sen.I|sen.V",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007391/0.007391, allocations: 101.7 kB / 15.73 MB, free: 6.004 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.001453/0.001453, allocations: 192.4 kB / 16.67 MB, free: 5.934 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.565/2.565, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 55.91 kB / 1.054 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.058/1.06, allocations: 157.4 MB / 1.208 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00423/1.064, allocations: 2.504 MB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001419/1.065, allocations: 0.7751 MB / 1.211 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/1.066, allocations: 4 kB / 1.211 GB, free: 10.49 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001193/1.067, allocations: 0.5297 MB / 1.211 GB, free: 9.957 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002424/1.067, allocations: 107.5 kB / 1.212 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/1.067, allocations: 115.7 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000249/1.068, allocations: 191.4 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003326/1.068, allocations: 166.1 kB / 1.212 GB, free: 9.379 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.332e-05/1.068, allocations: 87.67 kB / 1.212 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/1.068, allocations: 91.66 kB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/1.068, allocations: 12 kB / 1.212 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/1.068, allocations: 115.8 kB / 1.212 GB, free: 9.078 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.182e-05/1.068, allocations: 51.89 kB / 1.212 GB, free: 9.027 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/1.069, allocations: 67.67 kB / 1.212 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002707/1.069, allocations: 229 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/1.069, allocations: 0 / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.092e-06/1.069, allocations: 0 / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.931e-06/1.069, allocations: 0 / 1.213 GB, free: 8.738 MB / 0.9356 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.0005972/1.069, allocations: 451.3 kB / 1.213 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/1.069, allocations: 8.031 kB / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/1.07, allocations: 48.7 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/1.07, allocations: 212.1 kB / 1.213 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/1.07, allocations: 12.66 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/1.07, allocations: 12.38 kB / 1.213 GB, free: 7.922 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003414/1.071, allocations: 235.2 kB / 1.214 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/1.071, allocations: 0 / 1.214 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.913e-05/1.071, allocations: 11.98 kB / 1.214 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.025e-05/1.071, allocations: 12.28 kB / 1.214 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/1.071, allocations: 148.7 kB / 1.214 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/1.072, allocations: 1.123 MB / 1.215 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.775e-05/1.072, allocations: 42.5 kB / 1.215 GB, free: 6.199 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.556e-05/1.072, allocations: 20.94 kB / 1.215 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/1.072, allocations: 8 kB / 1.215 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/1.072, allocations: 30.56 kB / 1.215 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 3.567e-06/1.072, allocations: 0 / 1.215 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0002065/1.072, allocations: 81.44 kB / 1.215 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/1.072, allocations: 59.41 kB / 1.215 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/1.073, allocations: 171.6 kB / 1.215 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/1.073, allocations: 25.7 kB / 1.215 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/1.073, allocations: 147.4 kB / 1.215 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/1.073, allocations: 19.8 kB / 1.215 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.541e-05/1.073, allocations: 25.72 kB / 1.215 GB, free: 5.566 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001349/1.073, allocations: 326.8 kB / 1.216 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.214e-05/1.073, allocations: 28.84 kB / 1.216 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.944e-05/1.073, allocations: 93.38 kB / 1.216 GB, free: 5.082 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001347/1.073, allocations: 121.3 kB / 1.216 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/1.073, allocations: 0 / 1.216 GB, free: 4.93 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000184/1.073, allocations: 137.3 kB / 1.216 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/1.073, allocations: 5.406 kB / 1.216 GB, free: 4.785 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/1.073, allocations: 7.984 kB / 1.216 GB, free: 4.777 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/1.073, allocations: 7.938 kB / 1.216 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/1.074, allocations: 27.94 kB / 1.216 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/1.074, allocations: 7.984 kB / 1.216 GB, free: 4.734 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.589e-05/1.074, allocations: 23.67 kB / 1.216 GB, free: 4.711 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/1.074, allocations: 12.31 kB / 1.216 GB, free: 4.699 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.815e-05/1.074, allocations: 120.1 kB / 1.216 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 7.929e-05/1.074, allocations: 89.36 kB / 1.216 GB, free: 4.457 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001335/1.074, allocations: 121.3 kB / 1.216 GB, free: 4.305 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.504e-06/1.074, allocations: 4 kB / 1.216 GB, free: 4.301 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001861/1.074, allocations: 129.3 kB / 1.217 GB, free: 4.168 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/1.074, allocations: 8 kB / 1.217 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-06/1.074, allocations: 4 kB / 1.217 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.679e-06/1.074, allocations: 4.312 kB / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.295e-05/1.074, allocations: 23.98 kB / 1.217 GB, free: 4.129 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/1.074, allocations: 11.88 kB / 1.217 GB, free: 4.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.453e-05/1.074, allocations: 7.938 kB / 1.217 GB, free: 4.109 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/1.074, allocations: 8 kB / 1.217 GB, free: 4.102 MB / 0.9356 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 0.0001076/1.075, allocations: 184.3 kB / 1.217 GB, free: 3.914 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/1.075, allocations: 11.81 kB / 1.217 GB, free: 3.902 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/1.075, allocations: 16.92 kB / 1.217 GB, free: 3.883 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/1.075, allocations: 3.938 kB / 1.217 GB, free: 3.879 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/1.075, allocations: 4 kB / 1.217 GB, free: 3.875 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/1.075, allocations: 0 / 1.217 GB, free: 3.875 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004519/1.075, allocations: 477 kB / 1.217 GB, free: 3.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/1.075, allocations: 4 kB / 1.217 GB, free: 3.336 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.065e-05/1.075, allocations: 4 kB / 1.217 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/1.075, allocations: 0 / 1.217 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/1.075, allocations: 8.125 kB / 1.217 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/1.075, allocations: 0 / 1.217 GB, free: 3.324 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/1.075, allocations: 3.938 kB / 1.217 GB, free: 3.32 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001165/1.075, allocations: 111.5 kB / 1.217 GB, free: 3.184 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.943e-05/1.075, allocations: 101.2 kB / 1.218 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/1.075, allocations: 8 kB / 1.218 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.219e-05/1.075, allocations: 0 / 1.218 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.02e-05/1.075, allocations: 7.938 kB / 1.218 GB, free: 3.051 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-06/1.075, allocations: 3.984 kB / 1.218 GB, free: 3.047 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.982e-05/1.076, allocations: 132.2 kB / 1.218 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/1.076, allocations: 0 / 1.218 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003352/1.076, allocations: 51.84 kB / 1.218 GB, free: 2.867 MB / 0.9356 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 0.0001023/1.076, allocations: 107.2 kB / 1.218 GB, free: 2.75 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001959/1.076, allocations: 107.7 kB / 1.218 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.076, allocations: 0 / 1.218 GB, free: 2.645 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.435e-05/1.076, allocations: 21.19 kB / 1.218 GB, free: 2.625 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/1.077, allocations: 21.62 kB / 1.218 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004627/1.077, allocations: 279 kB / 1.218 GB, free: 2.305 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/1.077, allocations: 0.7163 MB / 1.219 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.813e-05/1.077, allocations: 32.61 kB / 1.219 GB, free: 1.527 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.758e-05/1.077, allocations: 11.44 kB / 1.219 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/1.077, allocations: 0 / 1.219 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of Templates: time 0.003442/1.081, allocations: 0.8685 MB / 1.22 GB, free: 0.6523 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches