Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001142/0.001142, allocations: 114.6 kB / 16.37 MB, free: 6.012 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.001175/0.001175, allocations: 192.6 kB / 17.31 MB, free: 5.613 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 / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.426/2.426, allocations: 437.1 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 60.72 kB / 0.8707 GB, free: 1.477 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2742, allocations: 151.6 MB / 1.019 GB, free: 9.895 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder): time 0.004598/0.2789, allocations: 2.62 MB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002242/0.2811, allocations: 0.9119 MB / 1.022 GB, free: 6.328 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007155/0.2819, allocations: 11.94 kB / 1.022 GB, free: 6.316 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0004765/0.2824, allocations: 63.33 kB / 1.022 GB, free: 6.254 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0004586/0.2829, allocations: 59.41 kB / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008764/0.2838, allocations: 236.8 kB / 1.023 GB, free: 5.969 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0007582/0.2846, allocations: 451.7 kB / 1.023 GB, free: 5.527 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005334/0.2852, allocations: 230 kB / 1.023 GB, free: 5.301 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001785/0.2853, allocations: 151.3 kB / 1.023 GB, free: 5.152 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.2855, allocations: 147.2 kB / 1.024 GB, free: 5.008 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.2857, allocations: 55.92 kB / 1.024 GB, free: 4.953 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.902e-05/0.2857, allocations: 52 kB / 1.024 GB, free: 4.902 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 8.82e-05/0.2858, allocations: 91.7 kB / 1.024 GB, free: 4.812 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.286, allocations: 183 kB / 1.024 GB, free: 4.633 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006051/0.2866, allocations: 0.6191 MB / 1.024 GB, free: 4.012 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.2866, allocations: 3.984 kB / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2866, allocations: 0 / 1.024 GB, free: 4.008 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.2866, allocations: 0 / 1.024 GB, free: 4.008 MB / 0.795 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.0009451/0.2876, allocations: 0.6507 MB / 1.025 GB, free: 3.309 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.2876, allocations: 11.98 kB / 1.025 GB, free: 3.297 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.2877, allocations: 44.45 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.2883, allocations: 387.2 kB / 1.026 GB, free: 2.84 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.2883, allocations: 20.94 kB / 1.026 GB, free: 2.82 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.193e-05/0.2884, allocations: 28.38 kB / 1.026 GB, free: 2.793 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006495/0.289, allocations: 329.7 kB / 1.026 GB, free: 2.453 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.289, allocations: 3.984 kB / 1.026 GB, free: 2.449 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.2891, allocations: 8 kB / 1.026 GB, free: 2.441 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.2891, allocations: 8 kB / 1.026 GB, free: 2.434 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004699/0.2896, allocations: 242.1 kB / 1.026 GB, free: 2.195 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.2911, allocations: 1.155 MB / 1.027 GB, free: 0.9805 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004534/0.2916, allocations: 222.8 kB / 1.027 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.2918, allocations: 100.8 kB / 1.028 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.2918, allocations: 7.938 kB / 1.028 GB, free: 0.6445 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.2919, allocations: 30.56 kB / 1.028 GB, free: 0.6055 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 1.583e-06/0.2919, allocations: 3.938 kB / 1.028 GB, free: 0.6016 MB / 0.795 GB Notification: Performance of matching and sorting (n=16): time 0.0006376/0.2925, allocations: 303.1 kB / 1.028 GB, free: 308 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.2926, allocations: 77.11 kB / 1.028 GB, free: 212 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003427/0.2929, allocations: 336.5 kB / 1.028 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.293, allocations: 25.7 kB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.2931, allocations: 196.1 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.255e-05/0.2932, allocations: 59.19 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.43e-05/0.2932, allocations: 37.7 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.2934, allocations: 346.8 kB / 1.029 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.2936, allocations: 88.83 kB / 1.029 GB, free: 15.1 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.2938, allocations: 117 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.2941, allocations: 182.6 kB / 1.029 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2941, allocations: 7.984 kB / 1.029 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004622/0.2946, allocations: 251.6 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.2946, allocations: 8 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2946, allocations: 0 / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.2947, allocations: 0 / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.2949, allocations: 35.92 kB / 1.03 GB, free: 14.49 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2949, allocations: 3.938 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.295, allocations: 39.75 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.295, allocations: 4 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002427/0.2953, allocations: 196.1 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001515/0.2954, allocations: 103.4 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002621/0.2957, allocations: 176.9 kB / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.403e-06/0.2957, allocations: 0 / 1.03 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of matching and sorting (n=20) (initialization_lambda0): time 0.0004228/0.2962, allocations: 221.2 kB / 1.03 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.594e-06/0.2962, allocations: 4 kB / 1.03 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-06/0.2962, allocations: 0 / 1.03 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.27e-06/0.2962, allocations: 7.984 kB / 1.03 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.2963, allocations: 23.94 kB / 1.03 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.2963, allocations: 4 kB / 1.03 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.2964, allocations: 23.89 kB / 1.03 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.2965, allocations: 7.938 kB / 1.03 GB, free: 13.66 MB / 0.8106 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.0001209/0.2966, allocations: 192.2 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.284e-05/0.2966, allocations: 35.56 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.136e-05/0.2967, allocations: 31.28 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.2967, allocations: 0 / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2967, allocations: 4 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.2968, allocations: 7.938 kB / 1.031 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004137/0.2972, allocations: 409.3 kB / 1.031 GB, free: 12.94 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.2972, allocations: 4 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001644/0.2974, allocations: 27.92 kB / 1.031 GB, free: 12.91 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.2974, allocations: 3.984 kB / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.2974, allocations: 0 / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.2974, allocations: 4 kB / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2974, allocations: 0 / 1.031 GB, free: 12.9 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007633/0.2982, allocations: 438.9 kB / 1.031 GB, free: 12.45 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.2984, allocations: 136.7 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.476e-05/0.2984, allocations: 4 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.2986, allocations: 11.98 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.2986, allocations: 11.92 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2986, allocations: 4 kB / 1.032 GB, free: 12.27 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002335/0.2989, allocations: 235.1 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2989, allocations: 0 / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003927/0.2993, allocations: 91.75 kB / 1.032 GB, free: 11.95 MB / 0.8106 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.0001123/0.2994, allocations: 101.4 kB / 1.032 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005922/0.3, allocations: 285.9 kB / 1.032 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3, allocations: 0 / 1.032 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001909/0.3002, allocations: 108.1 kB / 1.032 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005356/0.3008, allocations: 74.12 kB / 1.033 GB, free: 11.39 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/0.3018, allocations: 0.5434 MB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.3022, allocations: 0.7792 MB / 1.034 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001191/0.3023, allocations: 30.27 kB / 1.034 GB, free: 9.988 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.085e-05/0.3024, allocations: 19.44 kB / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.3024, allocations: 0 / 1.034 GB, free: 9.969 MB / 0.8106 GB Notification: Performance of Templates: time 0.006553/0.309, allocations: 3.15 MB / 1.037 GB, free: 6.855 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.makefile (rm -f Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.sim & ./Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_SignalExchange_Examples_FirstOrder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.SignalExchange.Examples.FirstOrder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches