Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.008433/0.008433, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001517/0.001517, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.366/1.366, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.2 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 65.47 kB / 0.9508 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2991, allocations: 140.4 MB / 1.088 GB, free: 1.496 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003975/0.3031, allocations: 2.603 MB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001566/0.3047, allocations: 0.908 MB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002275/0.305, allocations: 11.94 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.3053, allocations: 63.39 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.3054, allocations: 59.41 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.3059, allocations: 227.7 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000426/0.3064, allocations: 467.6 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.3067, allocations: 233.1 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.3069, allocations: 143.4 kB / 1.092 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.307, allocations: 159.1 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.3071, allocations: 48 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.8e-05/0.3071, allocations: 52 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.3072, allocations: 79.78 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.3074, allocations: 191 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000575/0.308, allocations: 0.6266 MB / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.308, allocations: 0 / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.082e-06/0.308, allocations: 0 / 1.094 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.308, allocations: 0 / 1.094 GB, free: 11.62 MB / 0.8575 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.0009972/0.309, allocations: 0.6637 MB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.309, allocations: 12.03 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.39e-05/0.3091, allocations: 44.66 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005789/0.3097, allocations: 391.5 kB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.3098, allocations: 20.94 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.3098, allocations: 24.38 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/0.3104, allocations: 333.7 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3105, allocations: 0 / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.3105, allocations: 12 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3105, allocations: 7.938 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.311, allocations: 230.2 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.3125, allocations: 1.163 MB / 1.096 GB, free: 8.578 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000463/0.313, allocations: 230.8 kB / 1.097 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.3132, allocations: 100.9 kB / 1.097 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.597e-05/0.3132, allocations: 0 / 1.097 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.3133, allocations: 42.56 kB / 1.097 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=16): time 9.62e-07/0.3133, allocations: 0 / 1.097 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of matching and sorting (n=16): time 0.0006614/0.3139, allocations: 295.3 kB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.314, allocations: 81.05 kB / 1.097 GB, free: 7.801 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.3143, allocations: 332.4 kB / 1.097 GB, free: 7.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.3144, allocations: 33.7 kB / 1.097 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.3145, allocations: 200.3 kB / 1.098 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.3146, allocations: 63.47 kB / 1.098 GB, free: 7.16 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.734e-05/0.3146, allocations: 37.7 kB / 1.098 GB, free: 7.117 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3148, allocations: 342.8 kB / 1.098 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.315, allocations: 84.83 kB / 1.098 GB, free: 6.688 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001925/0.3152, allocations: 123.3 kB / 1.098 GB, free: 6.555 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003458/0.3155, allocations: 186.5 kB / 1.098 GB, free: 6.363 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.3155, allocations: 0 / 1.098 GB, free: 6.363 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004587/0.316, allocations: 263.2 kB / 1.099 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.316, allocations: 7.984 kB / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.316, allocations: 0 / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.3161, allocations: 4 kB / 1.099 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.3162, allocations: 27.98 kB / 1.099 GB, free: 6.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.3163, allocations: 0 / 1.099 GB, free: 6.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001261/0.3164, allocations: 31.81 kB / 1.099 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.3164, allocations: 8.062 kB / 1.099 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002327/0.3167, allocations: 200 kB / 1.099 GB, free: 5.824 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001425/0.3168, allocations: 101.3 kB / 1.099 GB, free: 5.715 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002511/0.3171, allocations: 160.5 kB / 1.099 GB, free: 5.551 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.042e-06/0.3171, allocations: 4.031 kB / 1.099 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003448/0.3174, allocations: 229.3 kB / 1.099 GB, free: 5.316 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/0.3174, allocations: 7.938 kB / 1.099 GB, free: 5.309 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.3175, allocations: 4 kB / 1.099 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-06/0.3175, allocations: 3.938 kB / 1.099 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.3176, allocations: 31.98 kB / 1.1 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-06/0.3176, allocations: 0 / 1.1 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.3177, allocations: 11.95 kB / 1.1 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.3177, allocations: 11.94 kB / 1.1 GB, free: 5.246 MB / 0.8575 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.0001275/0.3179, allocations: 196.2 kB / 1.1 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.313e-05/0.3179, allocations: 31.81 kB / 1.1 GB, free: 5.016 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.649e-05/0.318, allocations: 35.28 kB / 1.1 GB, free: 4.984 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.318, allocations: 3.984 kB / 1.1 GB, free: 4.98 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.318, allocations: 4 kB / 1.1 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.318, allocations: 3.938 kB / 1.1 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004177/0.3185, allocations: 413.2 kB / 1.1 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3185, allocations: 0 / 1.1 GB, free: 4.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000161/0.3186, allocations: 23.98 kB / 1.1 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3186, allocations: 4 kB / 1.1 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.3187, allocations: 8 kB / 1.1 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.3187, allocations: 0 / 1.1 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.3187, allocations: 3.938 kB / 1.1 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007001/0.3194, allocations: 437.8 kB / 1.101 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.3196, allocations: 136.9 kB / 1.101 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.97e-05/0.3196, allocations: 8 kB / 1.101 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3197, allocations: 4 kB / 1.101 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.3198, allocations: 19.92 kB / 1.101 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/0.3198, allocations: 0 / 1.101 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002562/0.3201, allocations: 235 kB / 1.101 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3201, allocations: 0 / 1.101 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003785/0.3205, allocations: 91.72 kB / 1.101 GB, free: 3.539 MB / 0.8575 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.0001315/0.3206, allocations: 115.2 kB / 1.101 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005761/0.3212, allocations: 275.8 kB / 1.101 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3212, allocations: 0 / 1.101 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.3214, allocations: 94.78 kB / 1.102 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005428/0.322, allocations: 95.69 kB / 1.102 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.3231, allocations: 0.5578 MB / 1.102 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003967/0.3235, allocations: 0.7714 MB / 1.103 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001368/0.3237, allocations: 30.28 kB / 1.103 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.763e-05/0.3237, allocations: 19.44 kB / 1.103 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.3237, allocations: 0 / 1.103 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of Templates: time 0.007304/0.331, allocations: 3.198 MB / 1.106 GB, free: 14.37 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches