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.007077/0.007077, allocations: 96.91 kB / 15.87 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.001185/0.001185, allocations: 201.6 kB / 16.79 MB, free: 6.223 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.445/1.445, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.771/2.771, allocations: 461.8 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.00127, allocations: 67.91 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2997, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004377/0.3041, allocations: 2.652 MB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001629/0.3058, allocations: 0.8844 MB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003268/0.3062, allocations: 11.94 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002277/0.3064, allocations: 47.64 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.3066, allocations: 47.59 kB / 1.056 GB, free: 4.664 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000506/0.3072, allocations: 215.8 kB / 1.057 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004493/0.3076, allocations: 399.7 kB / 1.057 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.308, allocations: 225.1 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.3081, allocations: 111.4 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.3083, allocations: 123.2 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.132e-05/0.3083, allocations: 16 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.3084, allocations: 16 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.205e-05/0.3085, allocations: 55.66 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3086, allocations: 159 kB / 1.058 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003948/0.309, allocations: 0.4992 MB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.309, allocations: 0 / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.309, allocations: 4 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.164e-05/0.309, allocations: 4 kB / 1.058 GB, free: 2.859 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.0009893/0.31, allocations: 0.6429 MB / 1.059 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.3101, allocations: 15.97 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.202e-05/0.3102, allocations: 40.47 kB / 1.059 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.3106, allocations: 383.2 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.778e-05/0.3106, allocations: 24.94 kB / 1.059 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.586e-05/0.3107, allocations: 28.38 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005923/0.3113, allocations: 321.7 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.3113, allocations: 3.938 kB / 1.059 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.3114, allocations: 12 kB / 1.059 GB, free: 1.301 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.3114, allocations: 8 kB / 1.059 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.3118, allocations: 238.1 kB / 1.06 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.3134, allocations: 1.17 MB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000458/0.3139, allocations: 229.8 kB / 1.061 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.3141, allocations: 100.8 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.3141, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.3141, allocations: 34.56 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 9.81e-07/0.3141, allocations: 0 / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.000623/0.3148, allocations: 303.4 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.3148, allocations: 81.11 kB / 1.062 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.3152, allocations: 332.5 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.3152, allocations: 29.7 kB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.3153, allocations: 192.1 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.499e-05/0.3154, allocations: 63.12 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.751e-05/0.3155, allocations: 37.7 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3156, allocations: 346.7 kB / 1.063 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.3158, allocations: 96.83 kB / 1.063 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.316, allocations: 116.9 kB / 1.063 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.3164, allocations: 188.2 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3164, allocations: 0 / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004683/0.3168, allocations: 258.5 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3169, allocations: 4 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.3169, allocations: 0 / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3169, allocations: 4 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.3171, allocations: 27.98 kB / 1.063 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.3171, allocations: 4 kB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3172, allocations: 39.7 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.3173, allocations: 4 kB / 1.063 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002333/0.3175, allocations: 192.1 kB / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001552/0.3177, allocations: 108.5 kB / 1.064 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002526/0.3179, allocations: 171.8 kB / 1.064 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.92e-07/0.3179, allocations: 0 / 1.064 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003612/0.3183, allocations: 223 kB / 1.064 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.3183, allocations: 11.98 kB / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-06/0.3183, allocations: 0 / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.605e-06/0.3183, allocations: 0 / 1.064 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.3185, allocations: 24 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.465e-06/0.3185, allocations: 0 / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.3186, allocations: 27.88 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.3186, allocations: 11.94 kB / 1.064 GB, free: 12.5 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.0001129/0.3187, allocations: 188.2 kB / 1.064 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.983e-05/0.3188, allocations: 27.62 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.829e-05/0.3189, allocations: 35.28 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3189, allocations: 4 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3189, allocations: 0 / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3189, allocations: 7.922 kB / 1.064 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004364/0.3194, allocations: 405.3 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3194, allocations: 4 kB / 1.065 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.3195, allocations: 31.92 kB / 1.065 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3195, allocations: 3.938 kB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.735e-05/0.3196, allocations: 4 kB / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3196, allocations: 0 / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3196, allocations: 0 / 1.065 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006585/0.3202, allocations: 435 kB / 1.065 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3204, allocations: 136.7 kB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/0.3204, allocations: 8 kB / 1.065 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000151/0.3206, allocations: 7.984 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.19e-05/0.3206, allocations: 23.86 kB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.3207, allocations: 0 / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002334/0.3209, allocations: 235.1 kB / 1.065 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3209, allocations: 0 / 1.065 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003928/0.3213, allocations: 91.75 kB / 1.066 GB, free: 10.8 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.0001084/0.3214, allocations: 103.2 kB / 1.066 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005777/0.322, allocations: 281.4 kB / 1.066 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.322, allocations: 0 / 1.066 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.3222, allocations: 108.1 kB / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.3228, allocations: 71.27 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.324, allocations: 0.6873 MB / 1.067 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.3244, allocations: 0.7755 MB / 1.068 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.524e-05/0.3245, allocations: 27.38 kB / 1.068 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of SimCode: time 3.8e-07/0.3245, allocations: 0 / 1.068 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of Templates: time 0.006547/0.3311, allocations: 3.964 MB / 1.071 GB, free: 4.742 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/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