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.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Utilities.IO.SignalExchange.Examples.FirstOrder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0016/0.0016, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0018/0.001799, allocations: 191 kB / 16.25 MB, free: 6.637 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.377/1.377, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.668/2.668, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.38 kB / 0.8986 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2865, allocations: 157.4 MB / 1.052 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.005095/0.2916, allocations: 2.645 MB / 1.055 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.2933, allocations: 0.8961 MB / 1.056 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003468/0.2937, allocations: 11.94 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.2939, allocations: 43.66 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002536/0.2942, allocations: 47.61 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005276/0.2948, allocations: 219 kB / 1.056 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005113/0.2953, allocations: 447.7 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003583/0.2957, allocations: 225.7 kB / 1.057 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.2959, allocations: 147.4 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.2961, allocations: 151.1 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.977e-05/0.2962, allocations: 56 kB / 1.057 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 5.752e-05/0.2963, allocations: 48 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.373e-05/0.2963, allocations: 91.64 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.2966, allocations: 191 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005763/0.2971, allocations: 0.6001 MB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2972, allocations: 0 / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.884e-06/0.2972, allocations: 0 / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.278e-05/0.2972, allocations: 0 / 1.058 GB, free: 2.945 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001158/0.2983, allocations: 0.6507 MB / 1.059 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.2984, allocations: 8.031 kB / 1.059 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001011/0.2985, allocations: 40.47 kB / 1.059 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005078/0.299, allocations: 391.2 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.2991, allocations: 20.94 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.2991, allocations: 28.38 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006583/0.2998, allocations: 325.7 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.2998, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.2999, allocations: 12 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.2999, allocations: 4 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005099/0.3004, allocations: 238.1 kB / 1.06 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001777/0.3022, allocations: 1.174 MB / 1.061 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.3027, allocations: 226.8 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001985/0.3029, allocations: 100.8 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.303, allocations: 0 / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.303, allocations: 38.56 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.142e-06/0.303, allocations: 0 / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0006902/0.3037, allocations: 299.4 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.231e-05/0.3038, allocations: 84.98 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003777/0.3042, allocations: 332.5 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.3042, allocations: 25.7 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001639/0.3044, allocations: 200.1 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.373e-05/0.3044, allocations: 55.2 kB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.3045, allocations: 37.7 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3047, allocations: 346.8 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.3049, allocations: 84.83 kB / 1.062 GB, free: 14.03 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.3051, allocations: 116.9 kB / 1.063 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.3055, allocations: 192.3 kB / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3055, allocations: 0 / 1.063 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004653/0.306, allocations: 257.1 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.306, allocations: 4 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.306, allocations: 0 / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.306, allocations: 4 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.3062, allocations: 31.92 kB / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.793e-05/0.3063, allocations: 0 / 1.063 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001576/0.3064, allocations: 31.7 kB / 1.063 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3065, allocations: 8 kB / 1.063 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002641/0.3067, allocations: 197.7 kB / 1.063 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001585/0.3069, allocations: 111.4 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002842/0.3072, allocations: 164 kB / 1.064 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.573e-06/0.3072, allocations: 0 / 1.064 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003889/0.3076, allocations: 227.1 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.3076, allocations: 4 kB / 1.064 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3076, allocations: 7.984 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.22e-06/0.3076, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3078, allocations: 27.92 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3078, allocations: 4 kB / 1.064 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.3079, allocations: 19.83 kB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.3079, allocations: 7.938 kB / 1.064 GB, free: 12.59 MB / 0.8262 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.000114/0.308, allocations: 192.3 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.541e-05/0.3081, allocations: 35.62 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.792e-05/0.3082, allocations: 31.28 kB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.3082, allocations: 0 / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.3082, allocations: 4 kB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3082, allocations: 7.875 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/0.3087, allocations: 413.2 kB / 1.064 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3087, allocations: 3.984 kB / 1.064 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.3089, allocations: 23.98 kB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3089, allocations: 0 / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.3089, allocations: 8 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.3089, allocations: 0 / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3089, allocations: 3.938 kB / 1.065 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006885/0.3096, allocations: 431 kB / 1.065 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.3097, allocations: 132.7 kB / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.068e-05/0.3098, allocations: 8.062 kB / 1.065 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.3099, allocations: 15.98 kB / 1.065 GB, free: 11.22 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.31, allocations: 11.92 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.31, allocations: 4 kB / 1.065 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002686/0.3103, allocations: 235.1 kB / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3103, allocations: 0 / 1.065 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004131/0.3107, allocations: 87.69 kB / 1.065 GB, free: 10.89 MB / 0.8262 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.000122/0.3108, allocations: 103.2 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006266/0.3115, allocations: 293.9 kB / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3115, allocations: 0 / 1.066 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001827/0.3117, allocations: 102.9 kB / 1.066 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006237/0.3123, allocations: 83.81 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/0.3134, allocations: 0.6606 MB / 1.067 GB, free: 9.637 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/0.3138, allocations: 0.7753 MB / 1.067 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001481/0.314, allocations: 38.27 kB / 1.067 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.499e-05/0.3141, allocations: 19.44 kB / 1.067 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.3141, allocations: 0 / 1.067 GB, free: 8.773 MB / 0.8262 GB Notification: Performance of Templates: time 0.006899/0.321, allocations: 3.098 MB / 1.07 GB, free: 5.715 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches