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.001464/0.001464, allocations: 109.3 kB / 15.99 MB, free: 6.348 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.001613/0.001613, allocations: 194.5 kB / 16.91 MB, free: 6.188 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.411/1.411, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.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.374/2.374, allocations: 390.2 MB / 0.665 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 66.3 kB / 0.8127 GB, free: 33.16 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2956, allocations: 140.4 MB / 0.9498 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004751/0.3004, allocations: 2.653 MB / 0.9524 GB, free: 6.59 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001861/0.3023, allocations: 0.8728 MB / 0.9532 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005324/0.3029, allocations: 11.94 kB / 0.9532 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003216/0.3032, allocations: 51.58 kB / 0.9533 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000304/0.3036, allocations: 47.59 kB / 0.9533 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006809/0.3043, allocations: 219.6 kB / 0.9535 GB, free: 5.391 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000647/0.3049, allocations: 451.7 kB / 0.954 GB, free: 4.945 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.3054, allocations: 229 kB / 0.9542 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.3056, allocations: 143.4 kB / 0.9543 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.3058, allocations: 159.1 kB / 0.9545 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.296e-05/0.3059, allocations: 48 kB / 0.9545 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.068e-05/0.3059, allocations: 52 kB / 0.9546 GB, free: 4.324 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.874e-05/0.306, allocations: 91.69 kB / 0.9546 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.3062, allocations: 187 kB / 0.9548 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005067/0.3067, allocations: 0.5108 MB / 0.9553 GB, free: 3.539 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.944e-06/0.3067, allocations: 4 kB / 0.9553 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3067, allocations: 0 / 0.9553 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.912e-05/0.3067, allocations: 0 / 0.9553 GB, free: 3.535 MB / 0.7325 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.001146/0.3079, allocations: 0.6351 MB / 0.9559 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.3079, allocations: 19.95 kB / 0.956 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.3081, allocations: 40.47 kB / 0.956 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004962/0.3086, allocations: 379.3 kB / 0.9564 GB, free: 2.387 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.3086, allocations: 24.94 kB / 0.9564 GB, free: 2.363 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.055e-05/0.3087, allocations: 28.38 kB / 0.9564 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/0.3093, allocations: 329.7 kB / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.3093, allocations: 0 / 0.9567 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.3093, allocations: 12 kB / 0.9567 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.3094, allocations: 8 kB / 0.9567 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.3099, allocations: 242.1 kB / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001533/0.3114, allocations: 1.166 MB / 0.9581 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/0.3119, allocations: 230.8 kB / 0.9583 GB, free: 284 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.3121, allocations: 96.83 kB / 0.9584 GB, free: 184 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.3121, allocations: 0 / 0.9584 GB, free: 184 kB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.3122, allocations: 42.5 kB / 0.9585 GB, free: 132 kB / 0.7325 GB Notification: Performance of pre-optimization done (n=16): time 1.152e-06/0.3122, allocations: 0 / 0.9585 GB, free: 132 kB / 0.7325 GB Notification: Performance of matching and sorting (n=16): time 0.0006571/0.3129, allocations: 297.2 kB / 0.9588 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.3129, allocations: 81.11 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003524/0.3133, allocations: 328.5 kB / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.3133, allocations: 29.7 kB / 0.9592 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.3135, allocations: 196.1 kB / 0.9594 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.3135, allocations: 55.2 kB / 0.9594 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.489e-05/0.3136, allocations: 45.66 kB / 0.9595 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3138, allocations: 342.7 kB / 0.9598 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001832/0.314, allocations: 88.83 kB / 0.9599 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.3142, allocations: 123.3 kB / 0.96 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003385/0.3145, allocations: 180.7 kB / 0.9602 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3145, allocations: 0 / 0.9602 GB, free: 14.31 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004767/0.315, allocations: 261.1 kB / 0.9604 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.315, allocations: 4 kB / 0.9604 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3151, allocations: 3.938 kB / 0.9604 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3151, allocations: 4 kB / 0.9604 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3153, allocations: 31.92 kB / 0.9604 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3153, allocations: 0 / 0.9604 GB, free: 14.01 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.3154, allocations: 35.7 kB / 0.9605 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.3155, allocations: 4 kB / 0.9605 GB, free: 13.97 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002424/0.3157, allocations: 203.7 kB / 0.9607 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001553/0.3159, allocations: 101 kB / 0.9608 GB, free: 13.66 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002563/0.3161, allocations: 164.8 kB / 0.9609 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.644e-06/0.3162, allocations: 0 / 0.9609 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003724/0.3165, allocations: 233.2 kB / 0.9612 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.3166, allocations: 8 kB / 0.9612 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-06/0.3166, allocations: 0 / 0.9612 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.717e-06/0.3166, allocations: 0 / 0.9612 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.3167, allocations: 27.94 kB / 0.9612 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.3167, allocations: 3.984 kB / 0.9612 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001233/0.3169, allocations: 19.84 kB / 0.9612 GB, free: 13.2 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.3169, allocations: 7.938 kB / 0.9612 GB, free: 13.19 MB / 0.7481 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.0001231/0.317, allocations: 188.3 kB / 0.9614 GB, free: 13 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.3171, allocations: 27.62 kB / 0.9614 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.815e-05/0.3172, allocations: 35.28 kB / 0.9615 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.3172, allocations: 4 kB / 0.9615 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3172, allocations: 0 / 0.9615 GB, free: 12.94 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3172, allocations: 11.86 kB / 0.9615 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.3176, allocations: 405.3 kB / 0.9619 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3177, allocations: 0 / 0.9619 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.3178, allocations: 27.98 kB / 0.9619 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3179, allocations: 4 kB / 0.9619 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.3179, allocations: 4 kB / 0.9619 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.3179, allocations: 3.938 kB / 0.9619 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3179, allocations: 0 / 0.9619 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006773/0.3186, allocations: 444.6 kB / 0.9623 GB, free: 12 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.3187, allocations: 136.7 kB / 0.9625 GB, free: 11.85 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.15e-05/0.3188, allocations: 8.062 kB / 0.9625 GB, free: 11.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001486/0.3189, allocations: 7.984 kB / 0.9625 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.33e-05/0.319, allocations: 23.91 kB / 0.9625 GB, free: 11.81 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.128e-05/0.319, allocations: 4 kB / 0.9625 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002349/0.3192, allocations: 235.1 kB / 0.9627 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/0.3192, allocations: 0 / 0.9627 GB, free: 11.57 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004122/0.3197, allocations: 83.69 kB / 0.9628 GB, free: 11.49 MB / 0.7481 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.0001273/0.3198, allocations: 107.2 kB / 0.9629 GB, free: 11.38 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006453/0.3204, allocations: 291.8 kB / 0.9632 GB, free: 11.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3205, allocations: 7.875 kB / 0.9632 GB, free: 11.08 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001875/0.3207, allocations: 95.91 kB / 0.9633 GB, free: 10.99 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006594/0.3213, allocations: 85.75 kB / 0.9634 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.3226, allocations: 0.6933 MB / 0.964 GB, free: 10.18 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.323, allocations: 0.779 MB / 0.9648 GB, free: 9.379 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.113e-05/0.3231, allocations: 19.44 kB / 0.9648 GB, free: 9.359 MB / 0.7481 GB Notification: Performance of SimCode: time 4.71e-07/0.3231, allocations: 4 kB / 0.9648 GB, free: 9.355 MB / 0.7481 GB Notification: Performance of Templates: time 0.007103/0.3302, allocations: 3.958 MB / 0.9687 GB, free: 5.402 MB / 0.7481 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/jenkins1/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