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.001503/0.001503, allocations: 101.8 kB / 16.27 MB, free: 5.969 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.001784/0.001784, allocations: 194.7 kB / 17.2 MB, free: 5.594 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.339/1.339, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.602/2.602, allocations: 469.4 MB / 0.7427 GB, free: 3.68 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 68.95 kB / 0.9088 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3578, allocations: 159.1 MB / 1.064 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004404/0.3623, allocations: 2.607 MB / 1.067 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001941/0.3642, allocations: 0.9119 MB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003817/0.3647, allocations: 11.94 kB / 1.068 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.365, allocations: 67.39 kB / 1.068 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.3653, allocations: 55.36 kB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006027/0.3659, allocations: 247.3 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0005668/0.3665, allocations: 451.7 kB / 1.068 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000395/0.3669, allocations: 229.7 kB / 1.069 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.3671, allocations: 147.3 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.3673, allocations: 147.2 kB / 1.069 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.645e-05/0.3674, allocations: 52 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.89e-05/0.3674, allocations: 48 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.3675, allocations: 83.77 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.3677, allocations: 199 kB / 1.069 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005721/0.3683, allocations: 0.5961 MB / 1.07 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3683, allocations: 0 / 1.07 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3683, allocations: 0 / 1.07 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.675e-05/0.3683, allocations: 4 kB / 1.07 GB, free: 9.195 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.001085/0.3694, allocations: 0.6447 MB / 1.071 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.3695, allocations: 12.03 kB / 1.071 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.441e-05/0.3696, allocations: 40.47 kB / 1.071 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.37, allocations: 387.2 kB / 1.071 GB, free: 8.035 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.3701, allocations: 24.94 kB / 1.071 GB, free: 8.012 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.3701, allocations: 28.38 kB / 1.071 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.3707, allocations: 321.7 kB / 1.071 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3708, allocations: 0 / 1.071 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.3708, allocations: 12 kB / 1.071 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.3708, allocations: 8 kB / 1.071 GB, free: 7.637 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/0.3713, allocations: 238.1 kB / 1.072 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.373, allocations: 1.17 MB / 1.073 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004843/0.3735, allocations: 230.8 kB / 1.073 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.3737, allocations: 100.8 kB / 1.073 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3737, allocations: 0 / 1.073 GB, free: 5.836 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.3737, allocations: 42.5 kB / 1.073 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.3738, allocations: 0 / 1.073 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16): time 0.0006647/0.3744, allocations: 296.4 kB / 1.073 GB, free: 5.492 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.3745, allocations: 77.11 kB / 1.073 GB, free: 5.398 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003663/0.3749, allocations: 340.4 kB / 1.074 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.3749, allocations: 33.7 kB / 1.074 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3751, allocations: 192.1 kB / 1.074 GB, free: 4.824 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.725e-05/0.3751, allocations: 55.2 kB / 1.074 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.72e-05/0.3752, allocations: 37.7 kB / 1.074 GB, free: 4.727 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3753, allocations: 342.8 kB / 1.074 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001904/0.3755, allocations: 88.83 kB / 1.074 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.3758, allocations: 115.4 kB / 1.075 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.3761, allocations: 192.7 kB / 1.075 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3762, allocations: 0 / 1.075 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004859/0.3766, allocations: 257.1 kB / 1.075 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3767, allocations: 4 kB / 1.075 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3767, allocations: 0 / 1.075 GB, free: 3.711 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3767, allocations: 4 kB / 1.075 GB, free: 3.707 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001851/0.3769, allocations: 27.98 kB / 1.075 GB, free: 3.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.3769, allocations: 0 / 1.075 GB, free: 3.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.3771, allocations: 35.77 kB / 1.075 GB, free: 3.645 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.69e-05/0.3771, allocations: 8 kB / 1.075 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002497/0.3773, allocations: 194.3 kB / 1.075 GB, free: 3.445 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001738/0.3775, allocations: 113.3 kB / 1.075 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002625/0.3778, allocations: 169.9 kB / 1.076 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.263e-06/0.3778, allocations: 0 / 1.076 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003938/0.3782, allocations: 221.2 kB / 1.076 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.3782, allocations: 4 kB / 1.076 GB, free: 2.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3782, allocations: 7.984 kB / 1.076 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.567e-06/0.3782, allocations: 0 / 1.076 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.3784, allocations: 31.94 kB / 1.076 GB, free: 2.887 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-06/0.3784, allocations: 0 / 1.076 GB, free: 2.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3785, allocations: 19.89 kB / 1.076 GB, free: 2.867 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.3786, allocations: 15.94 kB / 1.076 GB, free: 2.852 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.0001379/0.3787, allocations: 196.1 kB / 1.076 GB, free: 2.652 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.007e-05/0.3788, allocations: 31.62 kB / 1.076 GB, free: 2.621 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.711e-05/0.3789, allocations: 35.28 kB / 1.076 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3789, allocations: 0 / 1.076 GB, free: 2.59 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3789, allocations: 4 kB / 1.076 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3789, allocations: 3.938 kB / 1.076 GB, free: 2.582 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004768/0.3794, allocations: 405.3 kB / 1.076 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3794, allocations: 7.984 kB / 1.076 GB, free: 2.129 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001719/0.3796, allocations: 27.92 kB / 1.076 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3796, allocations: 0 / 1.076 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3796, allocations: 8 kB / 1.076 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3796, allocations: 0 / 1.076 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3796, allocations: 0 / 1.076 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007398/0.3804, allocations: 438.9 kB / 1.077 GB, free: 1.648 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.3805, allocations: 132.7 kB / 1.077 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.044e-05/0.3806, allocations: 8 kB / 1.077 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.3807, allocations: 7.984 kB / 1.077 GB, free: 1.484 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.704e-05/0.3808, allocations: 19.92 kB / 1.077 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.3808, allocations: 0 / 1.077 GB, free: 1.465 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002773/0.3811, allocations: 231.1 kB / 1.077 GB, free: 1.242 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.51e-07/0.3811, allocations: 0 / 1.077 GB, free: 1.242 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004072/0.3815, allocations: 91.75 kB / 1.077 GB, free: 1.152 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.0001308/0.3816, allocations: 107.7 kB / 1.077 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006574/0.3823, allocations: 293.4 kB / 1.078 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3823, allocations: 4 kB / 1.078 GB, free: 0.75 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.3825, allocations: 100.1 kB / 1.078 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.3831, allocations: 77.22 kB / 1.078 GB, free: 0.582 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4622/0.8453, allocations: 0.5798 MB / 1.078 GB, free: 22.46 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.8457, allocations: 0.7753 MB / 1.079 GB, free: 21.76 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.8458, allocations: 21.56 kB / 1.079 GB, free: 21.75 MB / 0.8419 GB Notification: Performance of SimCode: time 1.102e-06/0.8458, allocations: 1.75 kB / 1.079 GB, free: 21.75 MB / 0.8419 GB Notification: Performance of Templates: time 0.007423/0.8532, allocations: 3.964 MB / 1.083 GB, free: 21.5 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=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/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