Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001053/0.001053, allocations: 117.9 kB / 16.42 MB, free: 6.5 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.00107/0.00107, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 59.89 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9442/0.9455, allocations: 140.4 MB / 1.089 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004112/0.9497, allocations: 2.497 MB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001397/0.9511, allocations: 0.7807 MB / 1.092 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001002/0.9512, allocations: 7.969 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001256/0.9525, allocations: 0.5302 MB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002962/0.9528, allocations: 111.1 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.9531, allocations: 107.4 kB / 1.093 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003043/0.9535, allocations: 195 kB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.9539, allocations: 161.7 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001558/0.954, allocations: 81.86 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.9543, allocations: 89.89 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.9543, allocations: 12.72 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002362/0.9546, allocations: 117 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.948e-05/0.9547, allocations: 60.45 kB / 1.093 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.536e-05/0.9548, allocations: 68.64 kB / 1.093 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.9552, allocations: 225.3 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.9552, allocations: 0 / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.914e-06/0.9552, allocations: 0.75 kB / 1.093 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.9552, allocations: 0 / 1.093 GB, free: 2.418 MB / 0.8575 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.0005403/0.9558, allocations: 442.9 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.9558, allocations: 9.516 kB / 1.094 GB, free: 2 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004104/0.9562, allocations: 47.27 kB / 1.094 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002432/0.9565, allocations: 227.9 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.9565, allocations: 10.09 kB / 1.094 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.9565, allocations: 13.06 kB / 1.094 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003977/0.9569, allocations: 230.4 kB / 1.094 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.957, allocations: 3.938 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.957, allocations: 10.17 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-05/0.957, allocations: 22.77 kB / 1.094 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.9573, allocations: 148.4 kB / 1.095 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.9584, allocations: 1.128 MB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.464e-05/0.9584, allocations: 37.02 kB / 1.096 GB, free: 456 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.852e-05/0.9585, allocations: 21.56 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.9585, allocations: 4.547 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.9585, allocations: 32.47 kB / 1.096 GB, free: 396 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.503e-06/0.9585, allocations: 0 / 1.096 GB, free: 396 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002396/0.9588, allocations: 81.92 kB / 1.096 GB, free: 340 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.097e-05/0.9588, allocations: 56.16 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.959, allocations: 173.7 kB / 1.096 GB, free: 144 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.959, allocations: 26.86 kB / 1.096 GB, free: 112 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.9591, allocations: 143.6 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.9591, allocations: 12.03 kB / 1.096 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.766e-05/0.9592, allocations: 32.66 kB / 1.096 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.9594, allocations: 321.7 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.759e-05/0.9594, allocations: 27.91 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.899e-05/0.9595, allocations: 87.7 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.9597, allocations: 129.1 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.9597, allocations: 0.9062 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002587/0.96, allocations: 129.6 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.96, allocations: 10.16 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.96, allocations: 3.109 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.9601, allocations: 7.438 kB / 1.097 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.9602, allocations: 34.58 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.9602, allocations: 3.938 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.421e-05/0.9603, allocations: 22.53 kB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.9603, allocations: 5.5 kB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001248/0.9605, allocations: 127.9 kB / 1.097 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.602e-05/0.9606, allocations: 87.5 kB / 1.097 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001519/0.9607, allocations: 120.9 kB / 1.097 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.063e-06/0.9607, allocations: 1.25 kB / 1.097 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002286/0.961, allocations: 135.7 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.961, allocations: 6.719 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.961, allocations: 2.375 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.703e-06/0.961, allocations: 3.719 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.9611, allocations: 26.56 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.9611, allocations: 8.438 kB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.134e-05/0.9612, allocations: 7.625 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.9612, allocations: 6.609 kB / 1.098 GB, free: 14.88 MB / 0.8731 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.0001153/0.9613, allocations: 191.3 kB / 1.098 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.237e-05/0.9614, allocations: 13.45 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.918e-05/0.9614, allocations: 14.59 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.9614, allocations: 4.5 kB / 1.098 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.9614, allocations: 0 / 1.098 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.9615, allocations: 95.61 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.9615, allocations: 0.9375 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.777e-05/0.9616, allocations: 0.75 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.9616, allocations: 2.312 kB / 1.098 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000135/0.9618, allocations: 135.6 kB / 1.098 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001903/0.962, allocations: 250.4 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.442e-05/0.962, allocations: 14.31 kB / 1.098 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001313/0.9621, allocations: 126.1 kB / 1.098 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of Backend: time 2.554e-06/0.9621, allocations: 0 / 1.098 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007154/0.9629, allocations: 244.5 kB / 1.099 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of SimCode: time 0.000817/0.9637, allocations: 0.701 MB / 1.099 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of Templates: time 0.0049/0.9686, allocations: 1.545 MB / 1.101 GB, free: 13.19 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches