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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0008658/0.0008658, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001077/0.001077, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.96/2.96, allocations: 462.6 MB / 0.736 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003843/0.0003844, allocations: 7.469 kB / 0.9021 GB, free: 36.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3844, allocations: 159.6 MB / 1.058 GB, free: 5.395 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.002867/0.3873, allocations: 2.179 MB / 1.06 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00144/0.3887, allocations: 0.8537 MB / 1.061 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.3889, allocations: 11.94 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001772/0.3891, allocations: 35.64 kB / 1.061 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.3893, allocations: 43.59 kB / 1.061 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.3897, allocations: 126.8 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.3901, allocations: 391.7 kB / 1.062 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002613/0.3904, allocations: 140.4 kB / 1.062 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.3905, allocations: 87.41 kB / 1.062 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.3906, allocations: 99.34 kB / 1.062 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.3906, allocations: 8 kB / 1.062 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.452e-05/0.3907, allocations: 4 kB / 1.062 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.376e-05/0.3907, allocations: 43.72 kB / 1.062 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.215e-05/0.3908, allocations: 85.52 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004033/0.3912, allocations: 499 kB / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3912, allocations: 0 / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3912, allocations: 0 / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.3912, allocations: 0 / 1.062 GB, free: 0.793 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.0008458/0.3921, allocations: 0.5844 MB / 1.063 GB, free: 160 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.3921, allocations: 8.031 kB / 1.063 GB, free: 152 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.607e-05/0.3922, allocations: 39.53 kB / 1.063 GB, free: 112 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.3927, allocations: 382 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.3927, allocations: 20.56 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.3928, allocations: 24 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/0.3934, allocations: 337.3 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.3934, allocations: 0 / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.3934, allocations: 8 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3934, allocations: 8 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004638/0.3939, allocations: 242.2 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.3954, allocations: 1.178 MB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.3959, allocations: 250.7 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.3961, allocations: 108.8 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.3961, allocations: 4 kB / 1.066 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.3962, allocations: 42.56 kB / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.333e-06/0.3962, allocations: 0 / 1.066 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0006502/0.3968, allocations: 315.3 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/0.3969, allocations: 77.11 kB / 1.066 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003731/0.3973, allocations: 332.4 kB / 1.066 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.3973, allocations: 29.7 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.3975, allocations: 200 kB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.382e-05/0.3976, allocations: 51.2 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.001e-05/0.3976, allocations: 0 / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.3978, allocations: 350.8 kB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001799/0.3979, allocations: 83.97 kB / 1.067 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.3982, allocations: 123.4 kB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.3984, allocations: 93.7 kB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3984, allocations: 0 / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004594/0.3988, allocations: 261.2 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.069e-05/0.3989, allocations: 121.1 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.3989, allocations: 0 / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.399, allocations: 7.938 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001762/0.3991, allocations: 27.98 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.3992, allocations: 4 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.3993, allocations: 23.83 kB / 1.068 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.604e-05/0.3993, allocations: 8 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.302e-06/0.3993, allocations: 4 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000317/0.3996, allocations: 175.8 kB / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-06/0.3997, allocations: 0 / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-06/0.3997, allocations: 0 / 1.068 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.3998, allocations: 35.92 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-06/0.3998, allocations: 0 / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.76e-05/0.3999, allocations: 23.77 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.3999, allocations: 8 kB / 1.068 GB, free: 11.01 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.oveWriSet_activate,expMod.oveWriAct_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.4001, allocations: 245.1 kB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-05/0.4002, allocations: 31.62 kB / 1.068 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.587e-05/0.4003, allocations: 35.28 kB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4003, allocations: 4 kB / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.4003, allocations: 0 / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.4003, allocations: 0 / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004321/0.4008, allocations: 409.2 kB / 1.069 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4008, allocations: 0 / 1.069 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.4009, allocations: 31.98 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.401, allocations: 3.938 kB / 1.069 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.401, allocations: 11.92 kB / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.401, allocations: 0 / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.401, allocations: 0 / 1.069 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006816/0.4017, allocations: 454.9 kB / 1.069 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.4018, allocations: 136.7 kB / 1.069 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.341e-05/0.4018, allocations: 0 / 1.069 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.402, allocations: 24.05 kB / 1.069 GB, free: 9.559 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.402, allocations: 7.984 kB / 1.069 GB, free: 9.551 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.4021, allocations: 12 kB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000216/0.4023, allocations: 227.1 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4023, allocations: 0 / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003809/0.4027, allocations: 87.69 kB / 1.07 GB, free: 9.234 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001199/0.4028, allocations: 99.19 kB / 1.07 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005859/0.4034, allocations: 301.4 kB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4034, allocations: 4 kB / 1.07 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001783/0.4036, allocations: 107 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005518/0.4042, allocations: 78.86 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.4053, allocations: 0.6403 MB / 1.071 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.4057, allocations: 0.7755 MB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001214/0.4058, allocations: 26.28 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.36e-05/0.4059, allocations: 19.44 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.4059, allocations: 0 / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of Templates: time 0.006496/0.4124, allocations: 2.857 MB / 1.074 GB, free: 4.312 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