Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 219.4 kB / 22.99 MB, free: 4.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.246/3.246, allocations: 0.5107 GB / 0.8166 GB, free: 17.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") translateModel(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|expMod.oveWriSet_u|expMod.oveWriAct_u|expMod.rea|expMod.oveWriSet_activate|expMod.oveWriAct_activate",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002489/0.002489, allocations: 68.05 kB / 1.187 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3608, allocations: 181.9 MB / 1.365 GB, free: 13.6 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004573/0.3654, allocations: 2.481 MB / 1.367 GB, free: 11.1 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001973/0.3674, allocations: 0.908 MB / 1.368 GB, free: 10.18 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003299/0.3677, allocations: 15.88 kB / 1.368 GB, free: 10.17 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002614/0.368, allocations: 63.39 kB / 1.368 GB, free: 10.11 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.3682, allocations: 67.41 kB / 1.368 GB, free: 10.04 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007144/0.3689, allocations: 242.7 kB / 1.368 GB, free: 9.805 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0006195/0.3695, allocations: 455.7 kB / 1.369 GB, free: 9.355 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003319/0.3699, allocations: 141.7 kB / 1.369 GB, free: 9.211 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.3701, allocations: 155.4 kB / 1.369 GB, free: 9.059 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.3703, allocations: 127.2 kB / 1.369 GB, free: 8.934 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.685e-05/0.3704, allocations: 48 kB / 1.369 GB, free: 8.887 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.855e-05/0.3704, allocations: 52 kB / 1.369 GB, free: 8.836 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.03e-05/0.3705, allocations: 91.64 kB / 1.369 GB, free: 8.746 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.3707, allocations: 143.3 kB / 1.369 GB, free: 8.605 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0007554/0.3714, allocations: 0.6266 MB / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3714, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3714, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.629e-05/0.3715, allocations: 0 / 1.37 GB, free: 7.977 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001139/0.3726, allocations: 0.5791 MB / 1.371 GB, free: 7.367 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3726, allocations: 11.97 kB / 1.371 GB, free: 7.355 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.273e-05/0.3727, allocations: 48.66 kB / 1.371 GB, free: 7.309 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005747/0.3733, allocations: 326.4 kB / 1.371 GB, free: 6.969 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.3733, allocations: 21.03 kB / 1.371 GB, free: 6.949 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/0.3734, allocations: 24.38 kB / 1.371 GB, free: 6.926 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006445/0.3741, allocations: 391.3 kB / 1.371 GB, free: 6.508 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.3741, allocations: 4 kB / 1.371 GB, free: 6.504 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.281e-05/0.3741, allocations: 16 kB / 1.371 GB, free: 6.488 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.3741, allocations: 11.94 kB / 1.371 GB, free: 6.477 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004861/0.3746, allocations: 234.5 kB / 1.372 GB, free: 6.25 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.3761, allocations: 0.9653 MB / 1.373 GB, free: 5.242 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005097/0.3766, allocations: 218.9 kB / 1.373 GB, free: 5.02 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.3768, allocations: 92.83 kB / 1.373 GB, free: 4.926 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.3768, allocations: 3.938 kB / 1.373 GB, free: 4.922 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.3768, allocations: 38.56 kB / 1.373 GB, free: 4.875 MB / 1.061 GB Notification: Performance of pre-optimization done (n=16): time 1.463e-06/0.3768, allocations: 0 / 1.373 GB, free: 4.875 MB / 1.061 GB Notification: Performance of matching and sorting (n=16): time 0.0006894/0.3775, allocations: 303.8 kB / 1.373 GB, free: 4.574 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.3776, allocations: 106.8 kB / 1.373 GB, free: 4.445 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.378, allocations: 276.2 kB / 1.374 GB, free: 4.164 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.928e-05/0.378, allocations: 29.7 kB / 1.374 GB, free: 4.129 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.3782, allocations: 196.6 kB / 1.374 GB, free: 3.934 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.3782, allocations: 63.45 kB / 1.374 GB, free: 3.871 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.841e-05/0.3783, allocations: 41.7 kB / 1.374 GB, free: 3.824 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.3785, allocations: 342.8 kB / 1.374 GB, free: 3.48 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.3787, allocations: 88.83 kB / 1.374 GB, free: 3.391 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.3789, allocations: 184.9 kB / 1.374 GB, free: 3.184 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.3793, allocations: 181.5 kB / 1.375 GB, free: 3 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3793, allocations: 4 kB / 1.375 GB, free: 2.996 MB / 1.061 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004811/0.3798, allocations: 249.4 kB / 1.375 GB, free: 2.746 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.3798, allocations: 4 kB / 1.375 GB, free: 2.742 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3798, allocations: 0 / 1.375 GB, free: 2.742 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.3798, allocations: 4 kB / 1.375 GB, free: 2.738 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.38, allocations: 35.92 kB / 1.375 GB, free: 2.703 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.38, allocations: 0 / 1.375 GB, free: 2.703 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.3801, allocations: 23.88 kB / 1.375 GB, free: 2.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.3801, allocations: 16 kB / 1.375 GB, free: 2.664 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002569/0.3804, allocations: 197.2 kB / 1.375 GB, free: 2.469 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002046/0.3806, allocations: 165.3 kB / 1.375 GB, free: 2.281 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002736/0.3809, allocations: 165 kB / 1.375 GB, free: 2.113 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.3809, allocations: 4 kB / 1.375 GB, free: 2.109 MB / 1.061 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003838/0.3813, allocations: 221.4 kB / 1.376 GB, free: 1.887 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.3813, allocations: 8.094 kB / 1.376 GB, free: 1.879 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.3813, allocations: 4 kB / 1.376 GB, free: 1.875 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-06/0.3813, allocations: 0 / 1.376 GB, free: 1.875 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.3814, allocations: 31.92 kB / 1.376 GB, free: 1.844 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.3814, allocations: 3.984 kB / 1.376 GB, free: 1.84 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.3815, allocations: 19.89 kB / 1.376 GB, free: 1.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.3816, allocations: 4 kB / 1.376 GB, free: 1.816 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (expMod.oveWriAct_activate,expMod.oveWriSet_activate,expMod.mod.conPI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001372/0.3817, allocations: 192.1 kB / 1.376 GB, free: 1.621 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.804e-05/0.3817, allocations: 23.86 kB / 1.376 GB, free: 1.598 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.536e-05/0.3818, allocations: 38.12 kB / 1.376 GB, free: 1.562 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.3818, allocations: 4 kB / 1.376 GB, free: 1.559 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3818, allocations: 3.938 kB / 1.376 GB, free: 1.555 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3818, allocations: 3.984 kB / 1.376 GB, free: 1.551 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003663/0.3822, allocations: 289.1 kB / 1.376 GB, free: 1.238 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3822, allocations: 0 / 1.376 GB, free: 1.238 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.3824, allocations: 23.98 kB / 1.376 GB, free: 1.215 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3824, allocations: 4 kB / 1.376 GB, free: 1.211 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.3824, allocations: 4 kB / 1.376 GB, free: 1.207 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3824, allocations: 0 / 1.376 GB, free: 1.207 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3824, allocations: 0 / 1.376 GB, free: 1.207 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007594/0.3831, allocations: 447 kB / 1.377 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.3833, allocations: 47.81 kB / 1.377 GB, free: 0.707 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.3833, allocations: 8 kB / 1.377 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.3834, allocations: 11.98 kB / 1.377 GB, free: 0.6875 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.597e-05/0.3835, allocations: 11.97 kB / 1.377 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.3835, allocations: 4 kB / 1.377 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002131/0.3837, allocations: 203.1 kB / 1.377 GB, free: 484 kB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3837, allocations: 4.062 kB / 1.377 GB, free: 480 kB / 1.061 GB Notification: Performance of remove unused functions: time 0.0004156/0.3842, allocations: 103.6 kB / 1.377 GB, free: 376 kB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (expMod.mod.conPI.I.y,expMod.mod.firOrd.y) * Number of discrete variables: 2 (expMod.oveWriSet_activate,expMod.oveWriAct_activate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001318/0.3843, allocations: 99.19 kB / 1.377 GB, free: 264 kB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0006455/0.3849, allocations: 276 kB / 1.377 GB, free: 15.99 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.3849, allocations: 4 kB / 1.377 GB, free: 15.98 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.3851, allocations: 96.09 kB / 1.378 GB, free: 15.89 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.3857, allocations: 75.02 kB / 1.378 GB, free: 15.83 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.3868, allocations: 0.5736 MB / 1.378 GB, free: 15.22 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.387, allocations: 172.8 kB / 1.378 GB, free: 15.04 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.738e-05/0.3871, allocations: 19.44 kB / 1.378 GB, free: 15.02 MB / 1.076 GB Notification: Performance of SimCode: time 3.91e-07/0.3871, allocations: 4 kB / 1.378 GB, free: 15.02 MB / 1.076 GB Notification: Performance of Templates: time 0.007105/0.3942, allocations: 3.866 MB / 1.382 GB, free: 11.16 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.352694917004555]