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.001773/0.001773, allocations: 107.5 kB / 16.41 MB, free: 6.469 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.002082/0.002082, allocations: 192.3 kB / 17.35 MB, free: 5.711 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.419/1.419, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.628/2.628, allocations: 472.7 MB / 0.746 GB, free: 460 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002513/0.002513, allocations: 72.02 kB / 1.07 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8862/0.8888, allocations: 159.9 MB / 1.226 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sensors.Examples.GeneralizedSensor): time 0.00506/0.8939, allocations: 2.512 MB / 1.229 GB, free: 11 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001927/0.8959, allocations: 0.7712 MB / 1.23 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002264/0.8961, allocations: 0 / 1.23 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.8977, allocations: 0.5452 MB / 1.23 GB, free: 9.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003781/0.8981, allocations: 107.5 kB / 1.23 GB, free: 9.574 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.8984, allocations: 107.7 kB / 1.23 GB, free: 9.469 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003613/0.8988, allocations: 199.4 kB / 1.23 GB, free: 9.273 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003892/0.8992, allocations: 154.1 kB / 1.231 GB, free: 9.117 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.8994, allocations: 75.77 kB / 1.231 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.8997, allocations: 95.64 kB / 1.231 GB, free: 8.949 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.502e-05/0.8997, allocations: 16 kB / 1.231 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002613/0.9, allocations: 111.8 kB / 1.231 GB, free: 8.824 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.619e-05/0.9001, allocations: 59.81 kB / 1.231 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.811e-05/0.9002, allocations: 71.67 kB / 1.231 GB, free: 8.695 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003701/0.9005, allocations: 223.7 kB / 1.231 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.9005, allocations: 0 / 1.231 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9006, allocations: 0 / 1.231 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.255e-05/0.9006, allocations: 0 / 1.231 GB, free: 8.48 MB / 0.9512 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.0007049/0.9013, allocations: 443 kB / 1.232 GB, free: 7.996 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.9013, allocations: 19.95 kB / 1.232 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004068/0.9018, allocations: 44.81 kB / 1.232 GB, free: 7.934 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.902, allocations: 228.1 kB / 1.232 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.9021, allocations: 8.656 kB / 1.232 GB, free: 7.664 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.14e-05/0.9021, allocations: 12.38 kB / 1.232 GB, free: 7.652 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004058/0.9025, allocations: 233.4 kB / 1.232 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.9025, allocations: 0 / 1.232 GB, free: 7.406 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.9026, allocations: 4 kB / 1.232 GB, free: 7.402 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.105e-05/0.9026, allocations: 16.27 kB / 1.232 GB, free: 7.387 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.9029, allocations: 148.6 kB / 1.232 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.9042, allocations: 1.138 MB / 1.233 GB, free: 5.973 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.715e-05/0.9043, allocations: 42.5 kB / 1.233 GB, free: 5.922 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.513e-05/0.9043, allocations: 16.95 kB / 1.233 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.9043, allocations: 3.984 kB / 1.233 GB, free: 5.898 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.9044, allocations: 34.56 kB / 1.234 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 1.533e-06/0.9044, allocations: 0 / 1.234 GB, free: 5.855 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.000238/0.9046, allocations: 77.58 kB / 1.234 GB, free: 5.773 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.9047, allocations: 51.41 kB / 1.234 GB, free: 5.711 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.9049, allocations: 179 kB / 1.234 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.9049, allocations: 25.7 kB / 1.234 GB, free: 5.496 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.905, allocations: 147.6 kB / 1.234 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.705e-05/0.905, allocations: 11.91 kB / 1.234 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.064e-05/0.9051, allocations: 45.59 kB / 1.234 GB, free: 5.285 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.9052, allocations: 318.8 kB / 1.234 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.17e-05/0.9053, allocations: 24.86 kB / 1.234 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.851e-05/0.9054, allocations: 92.55 kB / 1.234 GB, free: 4.816 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.9055, allocations: 125.3 kB / 1.235 GB, free: 4.66 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.9055, allocations: 0 / 1.235 GB, free: 4.66 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002016/0.9057, allocations: 133.6 kB / 1.235 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.9058, allocations: 12.06 kB / 1.235 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.9058, allocations: 4 kB / 1.235 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.9058, allocations: 0 / 1.235 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.9059, allocations: 35.8 kB / 1.235 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.906, allocations: 4 kB / 1.235 GB, free: 4.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.947e-05/0.906, allocations: 19.89 kB / 1.235 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.9061, allocations: 4 kB / 1.235 GB, free: 4.445 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000106/0.9062, allocations: 120.1 kB / 1.235 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 8.823e-05/0.9063, allocations: 93.38 kB / 1.235 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001275/0.9064, allocations: 121.5 kB / 1.235 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.423e-06/0.9064, allocations: 0 / 1.235 GB, free: 4.047 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization_lambda0): time 0.0002006/0.9066, allocations: 145.3 kB / 1.235 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.9066, allocations: 5.406 kB / 1.235 GB, free: 3.895 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.505e-06/0.9066, allocations: 4 kB / 1.235 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.532e-06/0.9067, allocations: 4 kB / 1.235 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.336e-05/0.9067, allocations: 20 kB / 1.235 GB, free: 3.867 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.9067, allocations: 15.86 kB / 1.235 GB, free: 3.852 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.017e-05/0.9068, allocations: 16.25 kB / 1.235 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.9068, allocations: 8 kB / 1.235 GB, free: 3.828 MB / 0.9512 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.0001092/0.9069, allocations: 185.6 kB / 1.235 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.907, allocations: 7.953 kB / 1.235 GB, free: 3.633 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.624e-05/0.907, allocations: 12.94 kB / 1.236 GB, free: 3.613 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.907, allocations: 3.938 kB / 1.236 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.907, allocations: 3.984 kB / 1.236 GB, free: 3.605 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.55e-05/0.9071, allocations: 92.95 kB / 1.236 GB, free: 3.496 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.9071, allocations: 8 kB / 1.236 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.922e-05/0.9072, allocations: 0 / 1.236 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.9072, allocations: 4 kB / 1.236 GB, free: 3.484 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001125/0.9073, allocations: 136.9 kB / 1.236 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001573/0.9075, allocations: 238.7 kB / 1.236 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.99e-05/0.9075, allocations: 12 kB / 1.236 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.719e-05/0.9077, allocations: 127.9 kB / 1.236 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of Backend: time 4.5e-07/0.9077, allocations: 0 / 1.236 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007669/0.9084, allocations: 253.5 kB / 1.236 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007439/0.9092, allocations: 0.7198 MB / 1.237 GB, free: 1.93 MB / 0.9512 GB Notification: Performance of Templates: time 0.004848/0.9141, allocations: 1.537 MB / 1.239 GB, free: 408 kB / 0.9512 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/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