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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001208/0.001208, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001383/0.001383, allocations: 168.7 kB / 15.95 MB, free: 204 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.59/1.59, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.909/2.909, allocations: 462.6 MB / 0.736 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.0003971, allocations: 8.906 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3384, allocations: 159.6 MB / 1.058 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.003222/0.3417, allocations: 2.141 MB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.3431, allocations: 0.7326 MB / 1.061 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.3432, allocations: 4 kB / 1.061 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.3434, allocations: 23.8 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002788/0.3437, allocations: 71.69 kB / 1.061 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.344, allocations: 87.83 kB / 1.061 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.3443, allocations: 235.3 kB / 1.061 GB, free: 2 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003185/0.3446, allocations: 175.2 kB / 1.061 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.45e-05/0.3447, allocations: 63.77 kB / 1.061 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.3449, allocations: 87.66 kB / 1.062 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.237e-05/0.3449, allocations: 4 kB / 1.062 GB, free: 1.652 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.3451, allocations: 59.83 kB / 1.062 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.629e-05/0.3452, allocations: 43.89 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.043e-05/0.3452, allocations: 53.58 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.3454, allocations: 167.8 kB / 1.062 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3455, allocations: 4 kB / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3455, allocations: 0 / 1.062 GB, free: 1.324 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.977e-06/0.3455, allocations: 0 / 1.062 GB, free: 1.324 MB / 0.8106 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.0006275/0.3461, allocations: 419.2 kB / 1.062 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3462, allocations: 8.031 kB / 1.062 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003734/0.3465, allocations: 47.77 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.3468, allocations: 214.8 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.3468, allocations: 16.28 kB / 1.063 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.3469, allocations: 12 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.3472, allocations: 218.9 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.3473, allocations: 0 / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.3473, allocations: 8 kB / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-05/0.3473, allocations: 16.27 kB / 1.063 GB, free: 280 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.3476, allocations: 144.7 kB / 1.063 GB, free: 136 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001132/0.3487, allocations: 1.138 MB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.296e-05/0.3488, allocations: 42.56 kB / 1.064 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.841e-05/0.3488, allocations: 16.94 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.3489, allocations: 7.938 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3489, allocations: 34.5 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.3489, allocations: 4 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4): time 0.0002035/0.3491, allocations: 73.55 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.3491, allocations: 55.39 kB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.3493, allocations: 171.8 kB / 1.064 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.3493, allocations: 25.7 kB / 1.064 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.644e-05/0.3494, allocations: 147.3 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.235e-05/0.3494, allocations: 7.844 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.3494, allocations: 4 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3496, allocations: 322.8 kB / 1.065 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.678e-05/0.3496, allocations: 23.98 kB / 1.065 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.104e-05/0.3497, allocations: 85.38 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.805e-05/0.3498, allocations: 40.16 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3498, allocations: 4 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000201/0.35, allocations: 137.3 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.3501, allocations: 161.7 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3501, allocations: 3.938 kB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3502, allocations: 7.984 kB / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.3503, allocations: 27.94 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.3503, allocations: 4 kB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.997e-05/0.3504, allocations: 23.84 kB / 1.065 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.3504, allocations: 7.984 kB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.811e-06/0.3504, allocations: 4 kB / 1.065 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001385/0.3505, allocations: 95.72 kB / 1.065 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.3506, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.188e-06/0.3506, allocations: 4 kB / 1.066 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.958e-05/0.3506, allocations: 28.23 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-06/0.3506, allocations: 4 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.213e-05/0.3507, allocations: 15.84 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.3507, allocations: 4 kB / 1.066 GB, free: 13.15 MB / 0.8262 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.0001327/0.3509, allocations: 217 kB / 1.066 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.3509, allocations: 7.906 kB / 1.066 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.3509, allocations: 20.86 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3509, allocations: 0 / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3509, allocations: 0 / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.351, allocations: 8 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004118/0.3514, allocations: 473 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3514, allocations: 0 / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.115e-05/0.3514, allocations: 4 kB / 1.066 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3514, allocations: 4 kB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.313e-06/0.3514, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.3515, allocations: 16.06 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3515, allocations: 0 / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001128/0.3516, allocations: 107.5 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.3516, allocations: 93 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.837e-05/0.3517, allocations: 0 / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.314e-05/0.3517, allocations: 8 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.035e-05/0.3517, allocations: 3.953 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.3517, allocations: 4 kB / 1.066 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.039e-05/0.3518, allocations: 127.9 kB / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3518, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003314/0.3522, allocations: 51.84 kB / 1.067 GB, free: 11.9 MB / 0.8262 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 0.0001067/0.3523, allocations: 99.19 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001945/0.3525, allocations: 111.7 kB / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3525, allocations: 0 / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.3525, allocations: 13.25 kB / 1.067 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002816/0.3528, allocations: 30.75 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000509/0.3533, allocations: 324.9 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.3537, allocations: 0.7202 MB / 1.068 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.803e-05/0.3538, allocations: 32.61 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.746e-05/0.3538, allocations: 11.44 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3538, allocations: 0 / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.00335/0.3571, allocations: 0.802 MB / 1.069 GB, free: 9.707 MB / 0.8262 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/jenkins/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