Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.582/1.582, allocations: 249.3 MB / 261.8 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00119/0.00119, allocations: 182.5 kB / 321.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.2 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008852/0.0008852, allocations: 82.55 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.457e-05/3.459e-05, allocations: 0 / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1994, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7188/0.9182, allocations: 137.7 MB / 1.026 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.9185, allocations: 85.62 kB / 1.026 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01625/0.9348, allocations: 7.007 MB / 1.033 GB, free: 7.375 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.322e-06/0.9348, allocations: 0 / 1.033 GB, free: 7.375 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.343e-05/0.9349, allocations: 15.98 kB / 1.033 GB, free: 7.359 MB / 0.6511 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.0007293/0.9356, allocations: 0.546 MB / 1.034 GB, free: 6.789 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.9357, allocations: 8.031 kB / 1.034 GB, free: 6.781 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.251e-05/0.9357, allocations: 39.53 kB / 1.034 GB, free: 6.742 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.9363, allocations: 399.2 kB / 1.034 GB, free: 6.398 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.9363, allocations: 22.81 kB / 1.034 GB, free: 6.387 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.9363, allocations: 24.69 kB / 1.034 GB, free: 6.371 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.9369, allocations: 303.5 kB / 1.034 GB, free: 6.156 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.9369, allocations: 0 / 1.034 GB, free: 6.156 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.9369, allocations: 14.88 kB / 1.034 GB, free: 6.152 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.9369, allocations: 4 kB / 1.034 GB, free: 6.148 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003343/0.9373, allocations: 203.5 kB / 1.035 GB, free: 6.031 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.9387, allocations: 1.173 MB / 1.036 GB, free: 5.105 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.9391, allocations: 201.1 kB / 1.036 GB, free: 4.977 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.9393, allocations: 84.73 kB / 1.036 GB, free: 4.926 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.9393, allocations: 0 / 1.036 GB, free: 4.926 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.9393, allocations: 38.38 kB / 1.036 GB, free: 4.883 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=16): time 1.212e-06/0.9393, allocations: 0 / 1.036 GB, free: 4.883 MB / 0.6511 GB Notification: Performance of matching and sorting (n=16): time 0.0003508/0.9397, allocations: 199.4 kB / 1.036 GB, free: 4.738 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.9397, allocations: 77.11 kB / 1.036 GB, free: 4.645 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003134/0.9401, allocations: 296.2 kB / 1.037 GB, free: 4.414 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.9401, allocations: 29.7 kB / 1.037 GB, free: 4.379 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.9402, allocations: 202.1 kB / 1.037 GB, free: 4.234 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.945e-05/0.9403, allocations: 60.44 kB / 1.037 GB, free: 4.184 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.178e-06/0.9403, allocations: 0 / 1.037 GB, free: 4.184 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.9404, allocations: 340.5 kB / 1.037 GB, free: 3.855 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001005/0.9405, allocations: 67.84 kB / 1.037 GB, free: 3.82 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.9407, allocations: 100.5 kB / 1.037 GB, free: 3.746 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.9408, allocations: 77.58 kB / 1.038 GB, free: 3.703 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.9408, allocations: 0 / 1.038 GB, free: 3.703 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002995/0.9411, allocations: 222 kB / 1.038 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.9412, allocations: 274.2 kB / 1.038 GB, free: 3.262 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.9412, allocations: 4 kB / 1.038 GB, free: 3.258 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.9413, allocations: 0 / 1.038 GB, free: 3.258 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.9414, allocations: 35.92 kB / 1.038 GB, free: 3.223 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.9414, allocations: 0 / 1.038 GB, free: 3.223 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.9416, allocations: 27.14 kB / 1.038 GB, free: 3.199 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.9416, allocations: 7.953 kB / 1.038 GB, free: 3.191 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.764e-06/0.9416, allocations: 8 kB / 1.038 GB, free: 3.184 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002357/0.9419, allocations: 161.4 kB / 1.038 GB, free: 3.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-06/0.9419, allocations: 4 kB / 1.038 GB, free: 3.086 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-06/0.9419, allocations: 4 kB / 1.038 GB, free: 3.082 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.942, allocations: 27.92 kB / 1.038 GB, free: 3.055 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.942, allocations: 4 kB / 1.038 GB, free: 3.051 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.9421, allocations: 19.34 kB / 1.038 GB, free: 3.035 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.9422, allocations: 4 kB / 1.038 GB, free: 3.031 MB / 0.6511 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 (actSet.y,actAct.y,expMod.mod.conPI.I.local_reset) * Number of discrete 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 8.578e-05/0.9423, allocations: 120.2 kB / 1.038 GB, free: 2.914 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.326e-05/0.9423, allocations: 35.52 kB / 1.038 GB, free: 2.879 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.205e-05/0.9424, allocations: 33.12 kB / 1.038 GB, free: 2.855 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.9424, allocations: 4 kB / 1.038 GB, free: 2.852 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.9424, allocations: 3.984 kB / 1.038 GB, free: 2.848 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.9424, allocations: 0 / 1.038 GB, free: 2.848 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003985/0.9428, allocations: 407.7 kB / 1.039 GB, free: 2.504 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.9428, allocations: 0 / 1.039 GB, free: 2.504 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.943, allocations: 27.98 kB / 1.039 GB, free: 2.477 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.943, allocations: 4 kB / 1.039 GB, free: 2.473 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.204e-05/0.9431, allocations: 11.45 kB / 1.039 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9431, allocations: 0 / 1.039 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.9431, allocations: 0 / 1.039 GB, free: 2.465 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004807/0.9436, allocations: 396.8 kB / 1.039 GB, free: 2.172 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.9437, allocations: 129.3 kB / 1.039 GB, free: 2.047 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.645e-05/0.9437, allocations: 11.05 kB / 1.039 GB, free: 2.039 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.9439, allocations: 16.02 kB / 1.039 GB, free: 2.023 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.513e-05/0.9439, allocations: 11.86 kB / 1.039 GB, free: 2.016 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.944, allocations: 7.938 kB / 1.039 GB, free: 2.008 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002355/0.9442, allocations: 234.7 kB / 1.04 GB, free: 1.828 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9442, allocations: 0 / 1.04 GB, free: 1.828 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003693/0.9446, allocations: 90.94 kB / 1.04 GB, free: 1.746 MB / 0.6511 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 (actSet.y,actAct.y) * Number of discrete 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.0001722/0.9448, allocations: 114.4 kB / 1.04 GB, free: 1.629 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000412/0.9452, allocations: 258.4 kB / 1.04 GB, free: 1.473 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.9452, allocations: 0 / 1.04 GB, free: 1.473 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000117/0.9453, allocations: 80.8 kB / 1.04 GB, free: 1.422 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.9458, allocations: 67.56 kB / 1.04 GB, free: 1.375 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008408/0.9466, allocations: 417.6 kB / 1.041 GB, free: 1.008 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.947, allocations: 0.7882 MB / 1.041 GB, free: 200 kB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002034/0.9472, allocations: 51.03 kB / 1.041 GB, free: 152 kB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.868e-05/0.9472, allocations: 15.44 kB / 1.041 GB, free: 136 kB / 0.6511 GB Notification: Performance of SimCode: time 1.342e-06/0.9472, allocations: 0 / 1.041 GB, free: 136 kB / 0.6511 GB Notification: Performance of Templates: time 0.006588/0.9538, allocations: 3.547 MB / 1.045 GB, free: 12.63 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches