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.001656/0.001656, allocations: 102.2 kB / 16.27 MB, free: 6 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.001905/0.001906, allocations: 191 kB / 17.2 MB, free: 5.609 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.458/1.458, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.412/2.412, allocations: 390.3 MB / 0.6653 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 62 kB / 0.8132 GB, free: 33.04 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3084, allocations: 140.4 MB / 0.9503 GB, free: 8.852 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004736/0.3132, allocations: 2.623 MB / 0.9528 GB, free: 6.207 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00204/0.3153, allocations: 0.9079 MB / 0.9537 GB, free: 5.293 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004408/0.3157, allocations: 15.88 kB / 0.9537 GB, free: 5.277 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.3161, allocations: 71.38 kB / 0.9538 GB, free: 5.207 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003683/0.3165, allocations: 59.34 kB / 0.9538 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006827/0.3172, allocations: 235.5 kB / 0.9541 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005773/0.3178, allocations: 443.8 kB / 0.9545 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004046/0.3182, allocations: 229.1 kB / 0.9547 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002071/0.3184, allocations: 151.3 kB / 0.9549 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.3187, allocations: 147.2 kB / 0.955 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.285e-05/0.3187, allocations: 51.94 kB / 0.955 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.103e-05/0.3188, allocations: 52 kB / 0.9551 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.352e-05/0.3189, allocations: 87.7 kB / 0.9552 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.3191, allocations: 191 kB / 0.9554 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005739/0.3196, allocations: 0.6039 MB / 0.956 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3197, allocations: 0 / 0.956 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3197, allocations: 4 kB / 0.956 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.548e-05/0.3197, allocations: 0 / 0.956 GB, free: 2.98 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.001114/0.3208, allocations: 0.6467 MB / 0.9566 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3209, allocations: 8.031 kB / 0.9566 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.973e-05/0.321, allocations: 40.47 kB / 0.9566 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004599/0.3214, allocations: 383.2 kB / 0.957 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.3215, allocations: 28.94 kB / 0.957 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.057e-05/0.3215, allocations: 24.38 kB / 0.9571 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000591/0.3221, allocations: 329.7 kB / 0.9574 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3221, allocations: 0 / 0.9574 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.932e-05/0.3222, allocations: 12 kB / 0.9574 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3222, allocations: 4 kB / 0.9574 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004896/0.3227, allocations: 238.1 kB / 0.9576 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.3244, allocations: 1.17 MB / 0.9588 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004734/0.3248, allocations: 230.8 kB / 0.959 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001927/0.325, allocations: 100.8 kB / 0.9591 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3251, allocations: 0 / 0.9591 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3251, allocations: 34.56 kB / 0.9591 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=16): time 1.353e-06/0.3251, allocations: 4 kB / 0.9591 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of matching and sorting (n=16): time 0.0006611/0.3258, allocations: 299.3 kB / 0.9594 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.3258, allocations: 81.11 kB / 0.9595 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003426/0.3262, allocations: 328.5 kB / 0.9598 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.3262, allocations: 29.7 kB / 0.9598 GB, free: 14.81 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.3264, allocations: 200 kB / 0.96 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.08e-05/0.3264, allocations: 51.2 kB / 0.96 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-05/0.3266, allocations: 45.48 kB / 0.9601 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.3267, allocations: 342.8 kB / 0.9604 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001915/0.3269, allocations: 92.81 kB / 0.9605 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.3271, allocations: 113.3 kB / 0.9606 GB, free: 13.95 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.3275, allocations: 192.8 kB / 0.9608 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.3275, allocations: 0 / 0.9608 GB, free: 13.76 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004572/0.3279, allocations: 261 kB / 0.961 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.328, allocations: 6.5 kB / 0.9611 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.328, allocations: 0 / 0.9611 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.328, allocations: 4 kB / 0.9611 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.3282, allocations: 31.98 kB / 0.9611 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.3282, allocations: 8 kB / 0.9611 GB, free: 13.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.3283, allocations: 27.7 kB / 0.9611 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.3284, allocations: 12 kB / 0.9611 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002241/0.3286, allocations: 188.1 kB / 0.9613 GB, free: 13.22 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001455/0.3287, allocations: 107.3 kB / 0.9614 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002572/0.329, allocations: 166.6 kB / 0.9616 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.343e-06/0.329, allocations: 0 / 0.9616 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0003631/0.3294, allocations: 228 kB / 0.9618 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.3294, allocations: 4 kB / 0.9618 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-06/0.3294, allocations: 0 / 0.9618 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.186e-06/0.3294, allocations: 4 kB / 0.9618 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.3296, allocations: 31.92 kB / 0.9618 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3296, allocations: 4.062 kB / 0.9618 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.3297, allocations: 19.83 kB / 0.9619 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.3297, allocations: 11.94 kB / 0.9619 GB, free: 12.63 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.0001167/0.3298, allocations: 192.1 kB / 0.962 GB, free: 12.44 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.654e-05/0.3299, allocations: 31.62 kB / 0.9621 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.99e-05/0.33, allocations: 35.28 kB / 0.9621 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.33, allocations: 0 / 0.9621 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.33, allocations: 0 / 0.9621 GB, free: 12.38 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.33, allocations: 7.938 kB / 0.9621 GB, free: 12.37 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004196/0.3304, allocations: 405.4 kB / 0.9625 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3305, allocations: 0 / 0.9625 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.3306, allocations: 23.98 kB / 0.9625 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.3307, allocations: 0 / 0.9625 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.3307, allocations: 8 kB / 0.9625 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3307, allocations: 3.984 kB / 0.9625 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3307, allocations: 0 / 0.9625 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006652/0.3314, allocations: 442.8 kB / 0.963 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3315, allocations: 136.6 kB / 0.9631 GB, free: 11.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.3315, allocations: 4 kB / 0.9631 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001453/0.3317, allocations: 11.98 kB / 0.9631 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.595e-05/0.3318, allocations: 11.92 kB / 0.9631 GB, free: 11.26 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.3318, allocations: 8 kB / 0.9631 GB, free: 11.25 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002334/0.332, allocations: 231.1 kB / 0.9633 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.332, allocations: 4.062 kB / 0.9634 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004011/0.3324, allocations: 87.69 kB / 0.9634 GB, free: 10.93 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.0001239/0.3326, allocations: 103.2 kB / 0.9635 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006121/0.3332, allocations: 283.7 kB / 0.9638 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3332, allocations: 256 / 0.9638 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.3334, allocations: 110.9 kB / 0.9639 GB, free: 10.44 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006155/0.334, allocations: 83.7 kB / 0.964 GB, free: 10.36 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.3352, allocations: 0.5957 MB / 0.9646 GB, free: 9.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.3355, allocations: 0.779 MB / 0.9653 GB, free: 8.926 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.3356, allocations: 19.44 kB / 0.9654 GB, free: 8.906 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/0.3356, allocations: 0 / 0.9654 GB, free: 8.906 MB / 0.7481 GB Notification: Performance of Templates: time 0.006902/0.3425, allocations: 3.951 MB / 0.9692 GB, free: 4.965 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