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.005155/0.005155, allocations: 97.23 kB / 15.73 MB, free: 6 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.001094/0.001094, allocations: 188.8 kB / 16.67 MB, free: 5.93 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 71.83 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4042, allocations: 159.9 MB / 1.226 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.004491/0.4088, allocations: 2.519 MB / 1.228 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001486/0.4103, allocations: 0.775 MB / 1.229 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.4104, allocations: 4 kB / 1.229 GB, free: 5.883 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.4118, allocations: 0.5297 MB / 1.229 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000338/0.4121, allocations: 115.5 kB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000368/0.4125, allocations: 111.7 kB / 1.23 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.4128, allocations: 195.4 kB / 1.23 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004308/0.4133, allocations: 166.1 kB / 1.23 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.4134, allocations: 75.77 kB / 1.23 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002907/0.4137, allocations: 95.64 kB / 1.23 GB, free: 4.598 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.4137, allocations: 20 kB / 1.23 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.4139, allocations: 107.8 kB / 1.23 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.931e-05/0.414, allocations: 63.8 kB / 1.23 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.878e-05/0.4141, allocations: 67.67 kB / 1.23 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000352/0.4145, allocations: 219.2 kB / 1.231 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4145, allocations: 0 / 1.231 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of FrontEnd: time 5.861e-06/0.4145, allocations: 0 / 1.231 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.4145, allocations: 3.938 kB / 1.231 GB, free: 4.125 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.000708/0.4152, allocations: 444.9 kB / 1.231 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.4153, allocations: 12.03 kB / 1.231 GB, free: 3.629 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.4157, allocations: 48.8 kB / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.416, allocations: 220.1 kB / 1.231 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.416, allocations: 12.66 kB / 1.231 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.416, allocations: 16.31 kB / 1.231 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003778/0.4164, allocations: 235.2 kB / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4164, allocations: 0 / 1.231 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.459e-05/0.4165, allocations: 7.984 kB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.696e-05/0.4165, allocations: 20.27 kB / 1.231 GB, free: 3.023 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002306/0.4168, allocations: 144.7 kB / 1.232 GB, free: 2.883 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.418, allocations: 1.127 MB / 1.233 GB, free: 1.625 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 8.457e-05/0.4181, allocations: 42.56 kB / 1.233 GB, free: 1.574 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.778e-05/0.4181, allocations: 16.86 kB / 1.233 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.4181, allocations: 0 / 1.233 GB, free: 1.555 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.4182, allocations: 38.64 kB / 1.233 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.001e-06/0.4182, allocations: 3.938 kB / 1.233 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0002306/0.4184, allocations: 77.58 kB / 1.233 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.4185, allocations: 51.41 kB / 1.233 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.4187, allocations: 173.6 kB / 1.233 GB, free: 1.184 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.4187, allocations: 25.7 kB / 1.233 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.4188, allocations: 143.7 kB / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.4188, allocations: 23.78 kB / 1.233 GB, free: 0.9844 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.185e-05/0.4189, allocations: 37.66 kB / 1.233 GB, free: 0.9414 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.419, allocations: 318.8 kB / 1.234 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.402e-05/0.4191, allocations: 28.84 kB / 1.234 GB, free: 0.5898 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.438e-05/0.4192, allocations: 93.36 kB / 1.234 GB, free: 476 kB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.4193, allocations: 121.5 kB / 1.234 GB, free: 320 kB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.4193, allocations: 0 / 1.234 GB, free: 320 kB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002029/0.4195, allocations: 141.6 kB / 1.234 GB, free: 172 kB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.4196, allocations: 8 kB / 1.234 GB, free: 164 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.4196, allocations: 0 / 1.234 GB, free: 164 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.4196, allocations: 7.938 kB / 1.234 GB, free: 156 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.4197, allocations: 23.98 kB / 1.234 GB, free: 132 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.4197, allocations: 7.938 kB / 1.234 GB, free: 124 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.15e-05/0.4198, allocations: 11.89 kB / 1.234 GB, free: 112 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.198e-05/0.4198, allocations: 8 kB / 1.234 GB, free: 104 kB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001304/0.42, allocations: 128 kB / 1.234 GB, free: 15.97 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.73e-05/0.4201, allocations: 92.66 kB / 1.234 GB, free: 15.85 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001478/0.4202, allocations: 129.2 kB / 1.234 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.182e-06/0.4202, allocations: 0 / 1.234 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0001948/0.4204, allocations: 137.4 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.567e-06/0.4205, allocations: 5.406 kB / 1.235 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4205, allocations: 4 kB / 1.235 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-06/0.4205, allocations: 4 kB / 1.235 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.365e-05/0.4206, allocations: 23.94 kB / 1.235 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.4206, allocations: 11.92 kB / 1.235 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.939e-05/0.4206, allocations: 8.312 kB / 1.235 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.4207, allocations: 12 kB / 1.235 GB, free: 15.48 MB / 0.9981 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.0001297/0.4208, allocations: 191.2 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.4208, allocations: 7.953 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.4209, allocations: 16.94 kB / 1.235 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4209, allocations: 3.938 kB / 1.235 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4209, allocations: 0 / 1.235 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.4209, allocations: 3.984 kB / 1.235 GB, free: 15.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000468/0.4214, allocations: 477 kB / 1.235 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.4214, allocations: 0 / 1.235 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.994e-05/0.4214, allocations: 4 kB / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.4214, allocations: 4 kB / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.4214, allocations: 0 / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.4214, allocations: 0 / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4215, allocations: 4 kB / 1.235 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001482/0.4216, allocations: 127.6 kB / 1.235 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.235e-05/0.4217, allocations: 85.06 kB / 1.235 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.9e-05/0.4217, allocations: 3.938 kB / 1.235 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.276e-05/0.4217, allocations: 0 / 1.235 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.672e-05/0.4218, allocations: 15.98 kB / 1.236 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.4218, allocations: 4 kB / 1.236 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001079/0.4219, allocations: 124.2 kB / 1.236 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.783e-06/0.4219, allocations: 0 / 1.236 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003329/0.4222, allocations: 55.83 kB / 1.236 GB, free: 14.25 MB / 0.9981 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.0001095/0.4224, allocations: 99.23 kB / 1.236 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002122/0.4226, allocations: 116.1 kB / 1.236 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4226, allocations: 0 / 1.236 GB, free: 14.03 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.846e-05/0.4226, allocations: 23.92 kB / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.4229, allocations: 19.36 kB / 1.236 GB, free: 13.99 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005092/0.4234, allocations: 282.8 kB / 1.236 GB, free: 13.68 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.4237, allocations: 0.7202 MB / 1.237 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.203e-05/0.4238, allocations: 32.61 kB / 1.237 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.17e-05/0.4239, allocations: 15.42 kB / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of SimCode: time 2.1e-07/0.4239, allocations: 0 / 1.237 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of Templates: time 0.00323/0.4271, allocations: 0.8683 MB / 1.238 GB, free: 12.02 MB / 0.9981 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