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.001184/0.001184, allocations: 113.9 kB / 16.42 MB, free: 6.441 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.00118/0.00118, allocations: 189.4 kB / 17.35 MB, free: 5.703 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.593/2.593, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 67.84 kB / 1.055 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8234/0.8248, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003838/0.8286, allocations: 2.499 MB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001298/0.83, allocations: 0.7711 MB / 1.212 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.942e-05/0.8301, allocations: 7.938 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.8312, allocations: 0.5329 MB / 1.212 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.8315, allocations: 115.5 kB / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002779/0.8318, allocations: 107.7 kB / 1.212 GB, free: 9.598 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000239/0.832, allocations: 195.4 kB / 1.213 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003216/0.8324, allocations: 162.1 kB / 1.213 GB, free: 9.238 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.923e-05/0.8325, allocations: 83.64 kB / 1.213 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.8327, allocations: 95.69 kB / 1.213 GB, free: 9.062 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.263e-05/0.8327, allocations: 16 kB / 1.213 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001779/0.8329, allocations: 115.7 kB / 1.213 GB, free: 8.934 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.755e-05/0.8329, allocations: 55.88 kB / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.865e-05/0.833, allocations: 67.67 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002701/0.8333, allocations: 229 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.8333, allocations: 0 / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.232e-06/0.8333, allocations: 0 / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.8333, allocations: 0 / 1.213 GB, free: 8.594 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.0005627/0.8339, allocations: 439.3 kB / 1.214 GB, free: 8.113 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.8339, allocations: 8.031 kB / 1.214 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003513/0.8343, allocations: 48.72 kB / 1.214 GB, free: 8.059 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.8345, allocations: 231.9 kB / 1.214 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.8345, allocations: 8.656 kB / 1.214 GB, free: 7.785 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.8346, allocations: 12.38 kB / 1.214 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003299/0.8349, allocations: 231.1 kB / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.8349, allocations: 0 / 1.214 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.835, allocations: 7.984 kB / 1.214 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/0.835, allocations: 16.27 kB / 1.214 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.8352, allocations: 152.6 kB / 1.214 GB, free: 7.355 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.8362, allocations: 1.123 MB / 1.216 GB, free: 6.102 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 8.417e-05/0.8363, allocations: 38.56 kB / 1.216 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.36e-05/0.8364, allocations: 20.94 kB / 1.216 GB, free: 6.031 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.8364, allocations: 0 / 1.216 GB, free: 6.031 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.8364, allocations: 42.56 kB / 1.216 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 2.304e-06/0.8364, allocations: 0 / 1.216 GB, free: 5.98 MB / 0.9356 GB Notification: Performance of matching and sorting (n=4): time 0.0001962/0.8366, allocations: 81.41 kB / 1.216 GB, free: 5.895 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.463e-05/0.8367, allocations: 55.41 kB / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.8368, allocations: 175.6 kB / 1.216 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.193e-05/0.8368, allocations: 25.7 kB / 1.216 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.1e-05/0.8369, allocations: 139.4 kB / 1.216 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.8369, allocations: 15.81 kB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/0.837, allocations: 33.7 kB / 1.216 GB, free: 5.422 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.8371, allocations: 322.8 kB / 1.216 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.089e-05/0.8371, allocations: 20.86 kB / 1.216 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.215e-05/0.8372, allocations: 89.42 kB / 1.217 GB, free: 4.953 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.8374, allocations: 129.2 kB / 1.217 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.8374, allocations: 0 / 1.217 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001897/0.8376, allocations: 129.6 kB / 1.217 GB, free: 4.66 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.8376, allocations: 12.06 kB / 1.217 GB, free: 4.648 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.8376, allocations: 0 / 1.217 GB, free: 4.648 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.8376, allocations: 11.88 kB / 1.217 GB, free: 4.637 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.8377, allocations: 27.98 kB / 1.217 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.8377, allocations: 4 kB / 1.217 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.741e-05/0.8378, allocations: 19.69 kB / 1.217 GB, free: 4.586 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.8378, allocations: 8 kB / 1.217 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.609e-05/0.8379, allocations: 128 kB / 1.217 GB, free: 4.449 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 6.603e-05/0.838, allocations: 85.44 kB / 1.217 GB, free: 4.332 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001184/0.8381, allocations: 125.5 kB / 1.217 GB, free: 4.176 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.8381, allocations: 0 / 1.217 GB, free: 4.176 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001786/0.8383, allocations: 141.2 kB / 1.217 GB, free: 4.031 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.8383, allocations: 4 kB / 1.217 GB, free: 4.027 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-06/0.8383, allocations: 4 kB / 1.217 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.697e-06/0.8383, allocations: 4 kB / 1.217 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.567e-05/0.8384, allocations: 31.92 kB / 1.217 GB, free: 3.988 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.8384, allocations: 7.938 kB / 1.217 GB, free: 3.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.456e-05/0.8385, allocations: 8.25 kB / 1.217 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.8385, allocations: 8 kB / 1.217 GB, free: 3.965 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 8.384e-05/0.8386, allocations: 188.2 kB / 1.218 GB, free: 3.773 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.947e-05/0.8386, allocations: 11.81 kB / 1.218 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.757e-05/0.8387, allocations: 12.94 kB / 1.218 GB, free: 3.746 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.8387, allocations: 7.922 kB / 1.218 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.8387, allocations: 0 / 1.218 GB, free: 3.738 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.8387, allocations: 92.95 kB / 1.218 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.8388, allocations: 0 / 1.218 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.826e-05/0.8388, allocations: 4 kB / 1.218 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.8388, allocations: 7.984 kB / 1.218 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001008/0.839, allocations: 129 kB / 1.218 GB, free: 3.484 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001577/0.8391, allocations: 242.6 kB / 1.218 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.633e-05/0.8392, allocations: 12 kB / 1.218 GB, free: 3.219 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.045e-05/0.8392, allocations: 136.2 kB / 1.218 GB, free: 3.086 MB / 0.9356 GB Notification: Performance of Backend: time 2.11e-07/0.8393, allocations: 0 / 1.218 GB, free: 3.086 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005675/0.8398, allocations: 239.1 kB / 1.218 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of SimCode: time 0.000621/0.8405, allocations: 0.7019 MB / 1.219 GB, free: 2.094 MB / 0.9356 GB Notification: Performance of Templates: time 0.003916/0.8444, allocations: 1.553 MB / 1.221 GB, free: 0.5469 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/jenkins1/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