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 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.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.001675/0.001675, allocations: 103.2 kB / 15.98 MB, free: 6.297 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.001798/0.001798, allocations: 195.9 kB / 16.91 MB, free: 6.145 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.456/1.456, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.01/3.01, allocations: 482.4 MB / 0.755 GB, free: 7.148 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001979, allocations: 61.31 kB / 0.924 GB, free: 360 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9311/0.9331, allocations: 162.2 MB / 1.082 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004078/0.9372, allocations: 2.635 MB / 1.085 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002035/0.9393, allocations: 0.8916 MB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003158/0.9396, allocations: 7.5 kB / 1.086 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.9399, allocations: 50.05 kB / 1.086 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000185/0.9401, allocations: 45.66 kB / 1.086 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005929/0.9407, allocations: 221.8 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000575/0.9413, allocations: 454.9 kB / 1.087 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003982/0.9417, allocations: 225.3 kB / 1.087 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.9419, allocations: 141.4 kB / 1.087 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.9421, allocations: 151.3 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.991e-05/0.9422, allocations: 49.91 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.166e-05/0.9422, allocations: 54.31 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.811e-05/0.9423, allocations: 87.8 kB / 1.087 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001944/0.9425, allocations: 198 kB / 1.087 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007213/0.9433, allocations: 0.5065 MB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.9433, allocations: 0.9062 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.973e-06/0.9433, allocations: 0 / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.636e-06/0.9433, allocations: 0 / 1.088 GB, free: 13.96 MB / 0.8419 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.001138/0.9444, allocations: 0.6451 MB / 1.089 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.9445, allocations: 10.53 kB / 1.089 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.86e-05/0.9446, allocations: 40.22 kB / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005314/0.9451, allocations: 382.7 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.9452, allocations: 20.34 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.829e-05/0.9452, allocations: 26.03 kB / 1.089 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000652/0.9459, allocations: 335.5 kB / 1.089 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.9459, allocations: 3.984 kB / 1.089 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.946, allocations: 10.72 kB / 1.089 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.946, allocations: 6.625 kB / 1.089 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005071/0.9465, allocations: 235.8 kB / 1.09 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001865/0.9484, allocations: 1.167 MB / 1.091 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005344/0.9489, allocations: 234.6 kB / 1.091 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.9491, allocations: 99.16 kB / 1.091 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.9492, allocations: 5.359 kB / 1.091 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.343e-05/0.9492, allocations: 36.28 kB / 1.091 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.9492, allocations: 4 kB / 1.091 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0007982/0.95, allocations: 301 kB / 1.091 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.9501, allocations: 83.33 kB / 1.091 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/0.9506, allocations: 325.2 kB / 1.092 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.9506, allocations: 30.89 kB / 1.092 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.9508, allocations: 197 kB / 1.092 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.232e-05/0.9509, allocations: 57.2 kB / 1.092 GB, free: 11.08 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.535e-05/0.951, allocations: 44.86 kB / 1.092 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002075/0.9512, allocations: 339.1 kB / 1.092 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.9514, allocations: 89.36 kB / 1.093 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.9517, allocations: 122.9 kB / 1.093 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.952, allocations: 183 kB / 1.093 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.9521, allocations: 0 / 1.093 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005349/0.9526, allocations: 260.6 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.9526, allocations: 5.672 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.9526, allocations: 0 / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.9527, allocations: 2.188 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001983/0.9529, allocations: 33.36 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.587e-06/0.9529, allocations: 2 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.953, allocations: 31.81 kB / 1.093 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/0.9531, allocations: 3.844 kB / 1.093 GB, free: 10.36 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002827/0.9534, allocations: 196.2 kB / 1.093 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001953/0.9536, allocations: 106.1 kB / 1.093 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002917/0.9539, allocations: 167.2 kB / 1.094 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.512e-06/0.9539, allocations: 1.125 kB / 1.094 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0004269/0.9543, allocations: 231.5 kB / 1.094 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.9543, allocations: 5.25 kB / 1.094 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.076e-06/0.9543, allocations: 0.7969 kB / 1.094 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.366e-06/0.9543, allocations: 3.062 kB / 1.094 GB, free: 9.922 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.9545, allocations: 27.48 kB / 1.094 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.9545, allocations: 2.078 kB / 1.094 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.9546, allocations: 15.38 kB / 1.094 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.9546, allocations: 8.906 kB / 1.094 GB, free: 9.906 MB / 0.8419 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.0001545/0.9548, allocations: 190 kB / 1.094 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.461e-05/0.9549, allocations: 29.19 kB / 1.094 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.067e-05/0.955, allocations: 35.88 kB / 1.094 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.955, allocations: 2.672 kB / 1.094 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.128e-06/0.955, allocations: 3.938 kB / 1.094 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.955, allocations: 9.797 kB / 1.094 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.9556, allocations: 408.7 kB / 1.095 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.9556, allocations: 1.312 kB / 1.095 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001735/0.9558, allocations: 23.86 kB / 1.095 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.9558, allocations: 1.375 kB / 1.095 GB, free: 9.367 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.9558, allocations: 14.66 kB / 1.095 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.9558, allocations: 0 / 1.095 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.9558, allocations: 0.6562 kB / 1.095 GB, free: 9.355 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008088/0.9567, allocations: 441.5 kB / 1.095 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001567/0.9568, allocations: 128.8 kB / 1.095 GB, free: 8.953 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.9569, allocations: 6.5 kB / 1.095 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.957, allocations: 15.95 kB / 1.095 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.697e-05/0.9571, allocations: 17.69 kB / 1.095 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.9571, allocations: 3.203 kB / 1.095 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000292/0.9574, allocations: 231.1 kB / 1.095 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9574, allocations: 0 / 1.095 GB, free: 8.805 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004495/0.9579, allocations: 96.66 kB / 1.095 GB, free: 8.773 MB / 0.8419 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.0001394/0.958, allocations: 101 kB / 1.096 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006829/0.9587, allocations: 297.5 kB / 1.096 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.9587, allocations: 0 / 1.096 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.959, allocations: 93.45 kB / 1.096 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.9596, allocations: 79.89 kB / 1.096 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.961, allocations: 0.7027 MB / 1.097 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004652/0.9614, allocations: 0.7745 MB / 1.097 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.826e-05/0.9615, allocations: 22.91 kB / 1.097 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of SimCode: time 5.21e-07/0.9615, allocations: 0 / 1.097 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of Templates: time 0.008247/0.9698, allocations: 3.961 MB / 1.101 GB, free: 6.836 MB / 0.8419 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=400 -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/jenkins1/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