Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0009068/0.0009068, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001183/0.001183, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.664/2.664, allocations: 437.7 MB / 0.7117 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000406/0.0004061, allocations: 8 kB / 0.8722 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.756/0.7564, allocations: 153.8 MB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003072/0.7595, allocations: 2.139 MB / 1.024 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001177/0.7607, allocations: 0.7288 MB / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.976e-05/0.7609, allocations: 0 / 1.025 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.761, allocations: 27.78 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002724/0.7613, allocations: 87.62 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003241/0.7616, allocations: 91.7 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003274/0.762, allocations: 235.3 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003189/0.7623, allocations: 179.2 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.782e-05/0.7624, allocations: 59.77 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.7626, allocations: 87.66 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.7627, allocations: 8 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001337/0.7628, allocations: 47.91 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.968e-05/0.7629, allocations: 55.88 kB / 1.026 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.631e-05/0.7629, allocations: 49.64 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.7632, allocations: 161.5 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.7632, allocations: 0 / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.914e-06/0.7632, allocations: 0 / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.7633, allocations: 0 / 1.026 GB, free: 12.07 MB / 0.7794 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.0005786/0.7638, allocations: 431.1 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.7639, allocations: 8.031 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003784/0.7643, allocations: 43.78 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.7645, allocations: 222.7 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.7646, allocations: 12.23 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.923e-05/0.7646, allocations: 16 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004474/0.765, allocations: 223 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.7651, allocations: 0 / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.7651, allocations: 8 kB / 1.027 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.7651, allocations: 16.27 kB / 1.027 GB, free: 11 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002422/0.7654, allocations: 148.6 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.7665, allocations: 1.127 MB / 1.028 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 7.197e-05/0.7666, allocations: 38.56 kB / 1.028 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.392e-05/0.7666, allocations: 16.86 kB / 1.028 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.712e-05/0.7666, allocations: 0 / 1.028 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.7667, allocations: 34.56 kB / 1.028 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.7667, allocations: 0 / 1.028 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0001943/0.7669, allocations: 81.61 kB / 1.029 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.7669, allocations: 59.3 kB / 1.029 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.7671, allocations: 177.1 kB / 1.029 GB, free: 9.145 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.7671, allocations: 25.7 kB / 1.029 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.131e-05/0.7672, allocations: 143.3 kB / 1.029 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.125e-05/0.7672, allocations: 7.906 kB / 1.029 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.7672, allocations: 8 kB / 1.029 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.7673, allocations: 322.8 kB / 1.029 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.673e-05/0.7674, allocations: 15.98 kB / 1.029 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.601e-05/0.7674, allocations: 85.44 kB / 1.029 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.216e-05/0.7675, allocations: 39.92 kB / 1.029 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.7675, allocations: 3.938 kB / 1.029 GB, free: 8.453 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002554/0.7678, allocations: 137.3 kB / 1.03 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.367e-05/0.7679, allocations: 153.9 kB / 1.03 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.7679, allocations: 7.953 kB / 1.03 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.7679, allocations: 4 kB / 1.03 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.768, allocations: 35.92 kB / 1.03 GB, free: 8.078 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.768, allocations: 4 kB / 1.03 GB, free: 8.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.7681, allocations: 15.75 kB / 1.03 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.7681, allocations: 8 kB / 1.03 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/0.7681, allocations: 4 kB / 1.03 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001558/0.7683, allocations: 99.7 kB / 1.03 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.7683, allocations: 8.312 kB / 1.03 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.541e-06/0.7683, allocations: 4 kB / 1.03 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.506e-05/0.7684, allocations: 27.92 kB / 1.03 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.7684, allocations: 4 kB / 1.03 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.458e-05/0.7685, allocations: 11.84 kB / 1.03 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.7685, allocations: 8.281 kB / 1.03 GB, free: 7.887 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.7686, allocations: 217 kB / 1.03 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.7687, allocations: 11.84 kB / 1.03 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.147e-05/0.7687, allocations: 20.91 kB / 1.03 GB, free: 7.633 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.7687, allocations: 4 kB / 1.03 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.7687, allocations: 0 / 1.03 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.7687, allocations: 0 / 1.03 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004752/0.7692, allocations: 469.2 kB / 1.031 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.7692, allocations: 4 kB / 1.031 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.7693, allocations: 4.125 kB / 1.031 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.7693, allocations: 4 kB / 1.031 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.7693, allocations: 4 kB / 1.031 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.7693, allocations: 3.938 kB / 1.031 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7693, allocations: 3.953 kB / 1.031 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.7694, allocations: 115.5 kB / 1.031 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.932e-05/0.7695, allocations: 89.02 kB / 1.031 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.7695, allocations: 11.92 kB / 1.031 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.361e-05/0.7696, allocations: 0 / 1.031 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.7696, allocations: 11.89 kB / 1.031 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.7696, allocations: 0 / 1.031 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.606e-05/0.7697, allocations: 130.2 kB / 1.031 GB, free: 6.684 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7697, allocations: 4 kB / 1.031 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003414/0.7701, allocations: 51.84 kB / 1.031 GB, free: 6.629 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.962e-05/0.7702, allocations: 99.25 kB / 1.031 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001992/0.7704, allocations: 107.7 kB / 1.031 GB, free: 6.418 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7704, allocations: 1.25 kB / 1.031 GB, free: 6.418 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.331e-05/0.7704, allocations: 12.17 kB / 1.031 GB, free: 6.406 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002535/0.7707, allocations: 32.03 kB / 1.031 GB, free: 6.375 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004607/0.7711, allocations: 312.8 kB / 1.032 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.7715, allocations: 0.724 MB / 1.032 GB, free: 5.281 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.727e-05/0.7716, allocations: 32.61 kB / 1.032 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.7716, allocations: 11.44 kB / 1.032 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.7716, allocations: 0 / 1.032 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of Templates: time 0.003602/0.7752, allocations: 0.8002 MB / 1.033 GB, free: 4.441 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches