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.001295/0.001295, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.001231/0.001232, allocations: 183 kB / 17.34 MB, free: 5.75 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.17 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.315/2.315, allocations: 390.3 MB / 0.6655 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 0.9515 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8384/0.8399, allocations: 140.4 MB / 1.089 GB, free: 5.555 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003693/0.8436, allocations: 2.508 MB / 1.091 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.8449, allocations: 0.7765 MB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.767e-05/0.845, allocations: 2.688 kB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.8462, allocations: 0.5343 MB / 1.092 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003472/0.8466, allocations: 103.2 kB / 1.092 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.847, allocations: 107.9 kB / 1.093 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.8474, allocations: 193.9 kB / 1.093 GB, free: 2.793 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004782/0.8479, allocations: 165.4 kB / 1.093 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.848, allocations: 81.55 kB / 1.093 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.8482, allocations: 95.05 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.054e-05/0.8483, allocations: 15.69 kB / 1.093 GB, free: 2.633 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.8485, allocations: 108.5 kB / 1.093 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.106e-05/0.8486, allocations: 61.52 kB / 1.093 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.861e-05/0.8487, allocations: 71.95 kB / 1.093 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000334/0.8491, allocations: 225.1 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.8491, allocations: 0.9062 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.432e-06/0.8491, allocations: 0 / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.8491, allocations: 0 / 1.093 GB, free: 2.453 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.000588/0.8497, allocations: 447.2 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.8497, allocations: 10.25 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004169/0.8502, allocations: 43.88 kB / 1.094 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.8504, allocations: 227 kB / 1.094 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.8504, allocations: 9.906 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.771e-05/0.8504, allocations: 9.188 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003817/0.8508, allocations: 246.2 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.8509, allocations: 0.5938 kB / 1.094 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/0.8509, allocations: 10.55 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.091e-05/0.8509, allocations: 13.72 kB / 1.094 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.8512, allocations: 144.7 kB / 1.095 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009855/0.8522, allocations: 1.125 MB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.569e-05/0.8523, allocations: 44.98 kB / 1.096 GB, free: 492 kB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.764e-05/0.8523, allocations: 17.67 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.8524, allocations: 0.75 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.351e-05/0.8524, allocations: 32 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.8524, allocations: 0 / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0002059/0.8526, allocations: 81.7 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.533e-05/0.8526, allocations: 53.02 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.8528, allocations: 177.6 kB / 1.096 GB, free: 188 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.8528, allocations: 30.23 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.524e-05/0.8529, allocations: 143.1 kB / 1.096 GB, free: 20 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.8529, allocations: 8.234 kB / 1.096 GB, free: 16 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.639e-05/0.853, allocations: 33.91 kB / 1.096 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8531, allocations: 325.5 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/0.8532, allocations: 27.38 kB / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.442e-05/0.8533, allocations: 83.72 kB / 1.097 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.8535, allocations: 129.6 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.8535, allocations: 0.6562 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002331/0.8537, allocations: 138.1 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.8537, allocations: 9.719 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.8537, allocations: 2.5 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.8538, allocations: 17.14 kB / 1.097 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.8539, allocations: 25.53 kB / 1.097 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.8539, allocations: 4.469 kB / 1.097 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.134e-05/0.854, allocations: 21.09 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.854, allocations: 6.797 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001132/0.8541, allocations: 119.6 kB / 1.097 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 9.601e-05/0.8542, allocations: 97.55 kB / 1.097 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001482/0.8544, allocations: 116.7 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.983e-06/0.8544, allocations: 1 kB / 1.097 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002333/0.8546, allocations: 141 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.8547, allocations: 5 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.8547, allocations: 3.875 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.14e-06/0.8547, allocations: 3.219 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.438e-05/0.8548, allocations: 23 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.8548, allocations: 12.25 kB / 1.098 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.2e-05/0.8549, allocations: 7.531 kB / 1.098 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.113e-05/0.8549, allocations: 5.312 kB / 1.098 GB, free: 14.92 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 9.267e-05/0.855, allocations: 189.4 kB / 1.098 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.855, allocations: 8.547 kB / 1.098 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.752e-05/0.8551, allocations: 13.77 kB / 1.098 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.8551, allocations: 5.25 kB / 1.098 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.8551, allocations: 0.5 kB / 1.098 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.8551, allocations: 0.9375 kB / 1.098 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004598/0.8555, allocations: 482.8 kB / 1.098 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.8556, allocations: 1.062 kB / 1.098 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.482e-05/0.8556, allocations: 10.27 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.8556, allocations: 1.219 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.8556, allocations: 2.938 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.8556, allocations: 0.7812 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.8556, allocations: 6.062 kB / 1.098 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001554/0.8558, allocations: 116.8 kB / 1.098 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.499e-05/0.8559, allocations: 88.3 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.8559, allocations: 7 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.524e-05/0.8559, allocations: 1.25 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.242e-05/0.856, allocations: 2.219 kB / 1.098 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.856, allocations: 7.688 kB / 1.098 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001183/0.8561, allocations: 121.8 kB / 1.099 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.525e-06/0.8561, allocations: 0 / 1.099 GB, free: 13.95 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003845/0.8565, allocations: 60.16 kB / 1.099 GB, free: 13.93 MB / 0.8731 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.8566, allocations: 100.8 kB / 1.099 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000262/0.8569, allocations: 114.1 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.8569, allocations: 5.219 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.132e-05/0.857, allocations: 15.42 kB / 1.099 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.8573, allocations: 29.31 kB / 1.099 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00059/0.8579, allocations: 306.6 kB / 1.099 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002938/0.8582, allocations: 0.7195 MB / 1.1 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.557e-05/0.8582, allocations: 14.44 kB / 1.1 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.8582, allocations: 0 / 1.1 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of Templates: time 0.003581/0.8618, allocations: 1.462 MB / 1.101 GB, free: 12.7 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