Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.006212/0.006212, allocations: 101 kB / 15.73 MB, free: 6.043 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.001408/0.001408, allocations: 202.4 kB / 16.68 MB, free: 5.965 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.473/1.473, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.945/2.945, allocations: 469.8 MB / 0.7425 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 63.89 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3883, allocations: 159.1 MB / 1.221 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004799/0.3931, allocations: 2.496 MB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3947, allocations: 0.7906 MB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.3949, allocations: 7.938 kB / 1.224 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.3963, allocations: 0.522 MB / 1.224 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000351/0.3966, allocations: 111.5 kB / 1.224 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.397, allocations: 111.5 kB / 1.225 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.3974, allocations: 195.4 kB / 1.225 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004037/0.3978, allocations: 142.1 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.3979, allocations: 87.69 kB / 1.225 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.3982, allocations: 87.72 kB / 1.225 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.3982, allocations: 12 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.3985, allocations: 115.7 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.984e-05/0.3986, allocations: 55.83 kB / 1.225 GB, free: 9.086 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.588e-05/0.3987, allocations: 71.67 kB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003644/0.399, allocations: 219.2 kB / 1.225 GB, free: 8.801 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.399, allocations: 4 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.182e-06/0.399, allocations: 0 / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.399, allocations: 0 / 1.225 GB, free: 8.797 MB / 0.9825 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.0007446/0.3998, allocations: 455 kB / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3998, allocations: 8.031 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004075/0.4002, allocations: 44.8 kB / 1.226 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.4005, allocations: 216.1 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.4005, allocations: 16.66 kB / 1.226 GB, free: 7.984 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.4005, allocations: 16.31 kB / 1.226 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/0.4009, allocations: 235.2 kB / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.4009, allocations: 0 / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.4009, allocations: 4 kB / 1.226 GB, free: 7.715 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.248e-05/0.401, allocations: 12.28 kB / 1.226 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.4012, allocations: 160.6 kB / 1.227 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.4024, allocations: 1.123 MB / 1.228 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.133e-05/0.4025, allocations: 38.56 kB / 1.228 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.346e-05/0.4025, allocations: 20.88 kB / 1.228 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.4025, allocations: 0 / 1.228 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.4025, allocations: 34.56 kB / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.4025, allocations: 0 / 1.228 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002134/0.4027, allocations: 81.69 kB / 1.228 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.4028, allocations: 55.41 kB / 1.228 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.403, allocations: 175.7 kB / 1.228 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.403, allocations: 25.7 kB / 1.228 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.516e-05/0.4031, allocations: 147.7 kB / 1.228 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.522e-05/0.4031, allocations: 19.81 kB / 1.228 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.329e-05/0.4031, allocations: 33.67 kB / 1.228 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4033, allocations: 322.8 kB / 1.229 GB, free: 5.281 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.373e-05/0.4033, allocations: 24.84 kB / 1.229 GB, free: 5.254 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.431e-05/0.4034, allocations: 93.38 kB / 1.229 GB, free: 5.129 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.4035, allocations: 133.2 kB / 1.229 GB, free: 4.965 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4035, allocations: 4 kB / 1.229 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002003/0.4037, allocations: 129.4 kB / 1.229 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4038, allocations: 9.859 kB / 1.229 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.4038, allocations: 4 kB / 1.229 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.4038, allocations: 7.938 kB / 1.229 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.4039, allocations: 24.25 kB / 1.229 GB, free: 4.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.4039, allocations: 7.984 kB / 1.229 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.091e-05/0.404, allocations: 19.89 kB / 1.229 GB, free: 4.758 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.404, allocations: 4 kB / 1.229 GB, free: 4.754 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001068/0.4041, allocations: 116.1 kB / 1.229 GB, free: 4.637 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.091e-05/0.4042, allocations: 101.4 kB / 1.229 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001206/0.4043, allocations: 117.3 kB / 1.229 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.132e-06/0.4043, allocations: 0 / 1.229 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001994/0.4045, allocations: 137.6 kB / 1.229 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.4045, allocations: 12.03 kB / 1.229 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/0.4045, allocations: 0 / 1.229 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.588e-06/0.4045, allocations: 4 kB / 1.229 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.034e-05/0.4046, allocations: 27.92 kB / 1.23 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.4046, allocations: 7.938 kB / 1.23 GB, free: 4.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.4047, allocations: 8 kB / 1.23 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.4048, allocations: 4 kB / 1.23 GB, free: 4.152 MB / 0.9825 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.0001054/0.4049, allocations: 196.1 kB / 1.23 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.4049, allocations: 7.953 kB / 1.23 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.313e-05/0.4049, allocations: 20.92 kB / 1.23 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.4049, allocations: 7.938 kB / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4049, allocations: 0 / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.4049, allocations: 0 / 1.23 GB, free: 3.914 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004425/0.4054, allocations: 473 kB / 1.23 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.4054, allocations: 4.125 kB / 1.23 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.412e-05/0.4054, allocations: 8 kB / 1.23 GB, free: 3.371 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4054, allocations: 3.938 kB / 1.23 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.4054, allocations: 3.938 kB / 1.23 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4054, allocations: 7.984 kB / 1.23 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4054, allocations: 0 / 1.23 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.4056, allocations: 115.5 kB / 1.23 GB, free: 3.215 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.174e-05/0.4056, allocations: 93.05 kB / 1.23 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.4056, allocations: 4 kB / 1.23 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.615e-05/0.4057, allocations: 4 kB / 1.23 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.634e-05/0.4057, allocations: 3.938 kB / 1.23 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-06/0.4057, allocations: 4.141 kB / 1.23 GB, free: 3.09 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.278e-05/0.4058, allocations: 124 kB / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.4058, allocations: 0 / 1.231 GB, free: 2.969 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000358/0.4062, allocations: 59.89 kB / 1.231 GB, free: 2.91 MB / 0.9825 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.0001163/0.4063, allocations: 99.23 kB / 1.231 GB, free: 2.801 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002103/0.4065, allocations: 108.6 kB / 1.231 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4065, allocations: 0 / 1.231 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.695e-05/0.4065, allocations: 20.25 kB / 1.231 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002807/0.4068, allocations: 19.98 kB / 1.231 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005778/0.4074, allocations: 282.6 kB / 1.231 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.4077, allocations: 0.7283 MB / 1.232 GB, free: 1.59 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.571e-05/0.4078, allocations: 24.62 kB / 1.232 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.266e-05/0.4078, allocations: 11.44 kB / 1.232 GB, free: 1.551 MB / 0.9825 GB Notification: Performance of SimCode: time 3.31e-07/0.4078, allocations: 4 kB / 1.232 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of Templates: time 0.003469/0.4113, allocations: 0.8779 MB / 1.233 GB, free: 0.6758 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.makefile (rm -f Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe >> ../files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.sim & ./Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_DC_Sensors_Examples_GeneralizedSensor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches