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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001321/0.001321, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001239/0.001239, allocations: 187.6 kB / 17.2 MB, free: 5.949 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.362/1.362, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.671/2.671, allocations: 482.4 MB / 0.7553 GB, free: 6.988 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 65.06 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7429/0.7448, allocations: 162.2 MB / 1.083 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003961/0.7488, allocations: 2.494 MB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.7503, allocations: 0.7888 MB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.296e-05/0.7504, allocations: 3.062 kB / 1.086 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.7518, allocations: 0.5312 MB / 1.087 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002941/0.7521, allocations: 107.5 kB / 1.087 GB, free: 15 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.7524, allocations: 114.9 kB / 1.087 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002779/0.7527, allocations: 190.1 kB / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003678/0.7531, allocations: 166.5 kB / 1.087 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.7532, allocations: 76.22 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.7534, allocations: 97.17 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.7535, allocations: 12.84 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.7537, allocations: 109 kB / 1.087 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.7538, allocations: 56.39 kB / 1.088 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.573e-05/0.7539, allocations: 72.86 kB / 1.088 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.7542, allocations: 231 kB / 1.088 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.7542, allocations: 1.094 kB / 1.088 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.533e-06/0.7542, allocations: 0 / 1.088 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.7542, allocations: 0.7031 kB / 1.088 GB, free: 14.52 MB / 0.8419 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.0006389/0.7549, allocations: 435.4 kB / 1.088 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.7549, allocations: 9.125 kB / 1.088 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000374/0.7553, allocations: 47.86 kB / 1.088 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.7556, allocations: 212.5 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.7556, allocations: 17.86 kB / 1.089 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.7556, allocations: 12.81 kB / 1.089 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.756, allocations: 226.6 kB / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.7561, allocations: 0 / 1.089 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.7561, allocations: 6.844 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.723e-05/0.7561, allocations: 13.55 kB / 1.089 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002551/0.7564, allocations: 160.8 kB / 1.089 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.7576, allocations: 1.125 MB / 1.09 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 8.26e-05/0.7577, allocations: 45.72 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.423e-05/0.7578, allocations: 17.06 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.7578, allocations: 1.094 kB / 1.09 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.7578, allocations: 36.81 kB / 1.09 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 4.789e-06/0.7578, allocations: 4 kB / 1.09 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0002065/0.758, allocations: 73.52 kB / 1.09 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/0.7581, allocations: 56.53 kB / 1.09 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.7583, allocations: 175.1 kB / 1.09 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.7583, allocations: 26.86 kB / 1.09 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.603e-05/0.7584, allocations: 139.5 kB / 1.091 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.7584, allocations: 16.97 kB / 1.091 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.256e-05/0.7585, allocations: 33.11 kB / 1.091 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.7586, allocations: 324.7 kB / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.73e-05/0.7587, allocations: 26.86 kB / 1.091 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.17e-05/0.7588, allocations: 88.44 kB / 1.091 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.759, allocations: 121.6 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.759, allocations: 1.156 kB / 1.091 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002094/0.7592, allocations: 132.8 kB / 1.091 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.7592, allocations: 6.125 kB / 1.091 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.7592, allocations: 6.969 kB / 1.091 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.7592, allocations: 8.438 kB / 1.091 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001236/0.7594, allocations: 29.88 kB / 1.091 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.7594, allocations: 3.922 kB / 1.091 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.019e-05/0.7595, allocations: 22.44 kB / 1.091 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.7595, allocations: 6 kB / 1.091 GB, free: 11.42 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001188/0.7596, allocations: 123.2 kB / 1.091 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.916e-05/0.7597, allocations: 102.6 kB / 1.092 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001409/0.7599, allocations: 124.2 kB / 1.092 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.614e-06/0.7599, allocations: 1.156 kB / 1.092 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001921/0.7601, allocations: 136.6 kB / 1.092 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.596e-06/0.7601, allocations: 6.297 kB / 1.092 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.7601, allocations: 3.312 kB / 1.092 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.177e-06/0.7601, allocations: 3.344 kB / 1.092 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.682e-05/0.7602, allocations: 27.2 kB / 1.092 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.7602, allocations: 10.47 kB / 1.092 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.857e-05/0.7603, allocations: 9.203 kB / 1.092 GB, free: 11 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.7603, allocations: 6.531 kB / 1.092 GB, free: 11 MB / 0.8419 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.0001212/0.7604, allocations: 187.3 kB / 1.092 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.7604, allocations: 13.86 kB / 1.092 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.979e-05/0.7605, allocations: 14.8 kB / 1.092 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.7605, allocations: 7.875 kB / 1.092 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7605, allocations: 1.062 kB / 1.092 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.7605, allocations: 0.6094 kB / 1.092 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004902/0.761, allocations: 477.6 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.761, allocations: 1.094 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.353e-05/0.7611, allocations: 8.266 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.786e-06/0.7611, allocations: 1.25 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.7611, allocations: 1.344 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.7611, allocations: 2.047 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.7611, allocations: 1.438 kB / 1.093 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.7612, allocations: 116.7 kB / 1.093 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.832e-05/0.7613, allocations: 96.02 kB / 1.093 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.146e-05/0.7613, allocations: 2.891 kB / 1.093 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.324e-05/0.7614, allocations: 1.094 kB / 1.093 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.157e-05/0.7614, allocations: 3.094 kB / 1.093 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.7614, allocations: 6.938 kB / 1.093 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001106/0.7615, allocations: 128 kB / 1.093 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7615, allocations: 0.6562 kB / 1.093 GB, free: 10.03 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003508/0.7619, allocations: 52.72 kB / 1.093 GB, free: 10.02 MB / 0.8419 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.0001228/0.762, allocations: 99.39 kB / 1.093 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002308/0.7623, allocations: 114.4 kB / 1.093 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7623, allocations: 0 / 1.093 GB, free: 9.883 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.093e-05/0.7623, allocations: 20.19 kB / 1.093 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.7626, allocations: 23.47 kB / 1.093 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005447/0.7632, allocations: 307.8 kB / 1.093 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.7636, allocations: 0.7319 MB / 1.094 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.7636, allocations: 14.03 kB / 1.094 GB, free: 8.914 MB / 0.8419 GB Notification: Performance of SimCode: time 3.6e-07/0.7636, allocations: 0 / 1.094 GB, free: 8.914 MB / 0.8419 GB Notification: Performance of Templates: time 0.003527/0.7671, allocations: 1.448 MB / 1.096 GB, free: 8.789 MB / 0.8419 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=400 -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