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.001035/0.001035, allocations: 83.22 kB / 16.01 MB, free: 92 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 184.8 kB / 16.92 MB, free: 6.281 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.418/1.418, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.763/2.763, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000503/0.0005031, allocations: 7.062 kB / 0.9034 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3276, allocations: 159.6 MB / 1.059 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.003458/0.3311, allocations: 2.271 MB / 1.062 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001711/0.3328, allocations: 0.8651 MB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003609/0.3332, allocations: 11.94 kB / 1.062 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002384/0.3335, allocations: 51.58 kB / 1.062 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002482/0.3337, allocations: 43.66 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006139/0.3343, allocations: 223.1 kB / 1.063 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005701/0.3349, allocations: 407.6 kB / 1.063 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004051/0.3353, allocations: 213.1 kB / 1.063 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.3355, allocations: 91.39 kB / 1.063 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001755/0.3357, allocations: 103.2 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.3358, allocations: 4 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.861e-05/0.3358, allocations: 8 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.113e-05/0.3358, allocations: 43.73 kB / 1.064 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.336, allocations: 156.8 kB / 1.064 GB, free: 468 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004878/0.3365, allocations: 0.4911 MB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3365, allocations: 0 / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.144e-06/0.3365, allocations: 4 kB / 1.064 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.007e-05/0.3365, allocations: 4 kB / 1.064 GB, free: 15.96 MB / 0.8262 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.001048/0.3376, allocations: 0.5651 MB / 1.065 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3376, allocations: 15.97 kB / 1.065 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.3378, allocations: 48.45 kB / 1.065 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004998/0.3383, allocations: 375.2 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.3383, allocations: 24.94 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.481e-05/0.3384, allocations: 28.38 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007082/0.3391, allocations: 337.7 kB / 1.066 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3392, allocations: 3.938 kB / 1.066 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.3392, allocations: 11.94 kB / 1.066 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3392, allocations: 8 kB / 1.066 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.3398, allocations: 254.1 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.3416, allocations: 1.17 MB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005427/0.3422, allocations: 250.8 kB / 1.067 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.3424, allocations: 100.8 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.3424, allocations: 0 / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.425e-05/0.3425, allocations: 42.56 kB / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.3425, allocations: 0 / 1.067 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16): time 0.0007527/0.3432, allocations: 319.9 kB / 1.068 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.3433, allocations: 77.11 kB / 1.068 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004002/0.3437, allocations: 336.4 kB / 1.068 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.3437, allocations: 33.7 kB / 1.068 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.3439, allocations: 192.1 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.344, allocations: 51.2 kB / 1.068 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.284e-05/0.344, allocations: 29.7 kB / 1.068 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3442, allocations: 334.8 kB / 1.069 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.3444, allocations: 91.95 kB / 1.069 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.3446, allocations: 120.8 kB / 1.069 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.345, allocations: 204.1 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3451, allocations: 4 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005315/0.3456, allocations: 270.8 kB / 1.069 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.373e-05/0.3457, allocations: 106.8 kB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.3457, allocations: 0 / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.3457, allocations: 7.938 kB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.3459, allocations: 35.92 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.346, allocations: 4 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.3461, allocations: 31.67 kB / 1.069 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.3461, allocations: 12 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.3462, allocations: 4 kB / 1.069 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003685/0.3465, allocations: 169.6 kB / 1.07 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-06/0.3465, allocations: 0 / 1.07 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.746e-06/0.3466, allocations: 7.984 kB / 1.07 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.3467, allocations: 39.86 kB / 1.07 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-06/0.3467, allocations: 0 / 1.07 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001258/0.3468, allocations: 27.8 kB / 1.07 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.3469, allocations: 4 kB / 1.07 GB, free: 10.01 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.0002346/0.3471, allocations: 246.6 kB / 1.07 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/0.3472, allocations: 27.62 kB / 1.07 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.009e-05/0.3473, allocations: 31.28 kB / 1.07 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3473, allocations: 7.938 kB / 1.07 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.3473, allocations: 3.938 kB / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3473, allocations: 0 / 1.07 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004919/0.3478, allocations: 417.3 kB / 1.07 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.3478, allocations: 0 / 1.07 GB, free: 9.234 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.348, allocations: 27.98 kB / 1.07 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.348, allocations: 0 / 1.07 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.348, allocations: 7.984 kB / 1.07 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/0.348, allocations: 4 kB / 1.07 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.348, allocations: 0 / 1.07 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007511/0.3488, allocations: 451 kB / 1.071 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.3489, allocations: 132.7 kB / 1.071 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.349, allocations: 8.062 kB / 1.071 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001495/0.3491, allocations: 15.98 kB / 1.071 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.3492, allocations: 7.984 kB / 1.071 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.3492, allocations: 4 kB / 1.071 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002468/0.3495, allocations: 235.1 kB / 1.071 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3495, allocations: 0 / 1.071 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004094/0.3499, allocations: 95.53 kB / 1.071 GB, free: 8.234 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.0001347/0.35, allocations: 99.25 kB / 1.071 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006555/0.3507, allocations: 302 kB / 1.072 GB, free: 7.836 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3507, allocations: 4 kB / 1.072 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.3509, allocations: 99.91 kB / 1.072 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006304/0.3516, allocations: 79.69 kB / 1.072 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.3528, allocations: 0.7111 MB / 1.073 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.3532, allocations: 0.7755 MB / 1.073 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.455e-05/0.3533, allocations: 23.44 kB / 1.073 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.3533, allocations: 0 / 1.073 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of Templates: time 0.007008/0.3603, allocations: 3.91 MB / 1.077 GB, free: 2.188 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