Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") translateModel(BuildingSystems.HAM.Examples.GasGapClosed,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.798/0.798, allocations: 143.4 MB / 159.2 MB, free: 4.938 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 183 kB / 191.9 MB, free: 5.719 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 222.9 MB / 447.3 MB, free: 5.863 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 103.2 kB / 0.517 GB, free: 3.711 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001961/0.001961, allocations: 274.1 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 79.89 kB / 0.6885 GB, free: 3.848 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3807/0.3821, allocations: 81.29 MB / 0.7679 GB, free: 27.66 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.HAM.Examples.GasGapClosed): time 0.002634/0.3848, allocations: 1.786 MB / 0.7697 GB, free: 25.87 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.3862, allocations: 1.051 MB / 0.7707 GB, free: 24.82 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.122e-05/0.3862, allocations: 0 / 0.7707 GB, free: 24.82 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 5.26e-05/0.3863, allocations: 11.92 kB / 0.7707 GB, free: 24.8 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 9.792e-05/0.3864, allocations: 27.77 kB / 0.7707 GB, free: 24.78 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.3868, allocations: 135.6 kB / 0.7709 GB, free: 24.64 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.3869, allocations: 91.53 kB / 0.7709 GB, free: 24.55 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.387, allocations: 22.89 kB / 0.771 GB, free: 24.53 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.819e-05/0.3871, allocations: 47.8 kB / 0.771 GB, free: 24.48 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.523e-05/0.3872, allocations: 39.84 kB / 0.771 GB, free: 24.45 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.3872, allocations: 4 kB / 0.771 GB, free: 24.44 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002562/0.3875, allocations: 179.8 kB / 0.7712 GB, free: 24.27 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 1.574e-05/0.3875, allocations: 11.92 kB / 0.7712 GB, free: 24.25 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.3875, allocations: 43.8 kB / 0.7713 GB, free: 24.21 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.3878, allocations: 211.4 kB / 0.7715 GB, free: 24 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3878, allocations: 0 / 0.7715 GB, free: 24 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3878, allocations: 4 kB / 0.7715 GB, free: 24 MB / 458.7 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.3878, allocations: 4 kB / 0.7715 GB, free: 24 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004136/0.3882, allocations: 411.1 kB / 0.7719 GB, free: 23.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.3883, allocations: 12.03 kB / 0.7719 GB, free: 23.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.29e-05/0.3883, allocations: 8.844 kB / 0.7719 GB, free: 23.53 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.3884, allocations: 190 kB / 0.7721 GB, free: 23.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.757e-06/0.3885, allocations: 384 / 0.7721 GB, free: 23.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.3885, allocations: 8.375 kB / 0.7721 GB, free: 23.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.3886, allocations: 81.91 kB / 0.7722 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3886, allocations: 3.938 kB / 0.7722 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.3887, allocations: 0 / 0.7722 GB, free: 23.21 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3887, allocations: 4 kB / 0.7722 GB, free: 23.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.3888, allocations: 47.97 kB / 0.7722 GB, free: 23.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003966/0.3892, allocations: 392 kB / 0.7726 GB, free: 22.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.3893, allocations: 46.56 kB / 0.7726 GB, free: 22.66 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.957e-05/0.3894, allocations: 20.94 kB / 0.7727 GB, free: 22.63 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-05/0.3895, allocations: 89.09 kB / 0.7727 GB, free: 22.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.502e-05/0.3895, allocations: 30.56 kB / 0.7728 GB, free: 22.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3895, allocations: 0 / 0.7728 GB, free: 22.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002411/0.3897, allocations: 93.5 kB / 0.7729 GB, free: 22.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.913e-05/0.3898, allocations: 55.41 kB / 0.7729 GB, free: 22.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.485e-05/0.3898, allocations: 141 kB / 0.773 GB, free: 22.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.705e-06/0.3899, allocations: 25.7 kB / 0.7731 GB, free: 22.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.111e-05/0.3899, allocations: 100 kB / 0.7732 GB, free: 22.05 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.3899, allocations: 11.91 kB / 0.7732 GB, free: 22.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.39, allocations: 9.719 kB / 0.7732 GB, free: 22.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.384e-05/0.39, allocations: 322.8 kB / 0.7735 GB, free: 21.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.598e-05/0.3901, allocations: 16 kB / 0.7735 GB, free: 21.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.845e-05/0.3901, allocations: 15.98 kB / 0.7735 GB, free: 21.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.177e-05/0.3902, allocations: 32.84 kB / 0.7736 GB, free: 21.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3902, allocations: 0 / 0.7736 GB, free: 21.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001176/0.3903, allocations: 73.52 kB / 0.7736 GB, free: 21.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.3903, allocations: 8 kB / 0.7736 GB, free: 21.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.3903, allocations: 0 / 0.7736 GB, free: 21.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3904, allocations: 0 / 0.7736 GB, free: 21.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.4e-05/0.3905, allocations: 16.09 kB / 0.7736 GB, free: 21.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.3905, allocations: 7.938 kB / 0.7737 GB, free: 21.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.528e-05/0.3905, allocations: 11.88 kB / 0.7737 GB, free: 21.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-06/0.3905, allocations: 0 / 0.7737 GB, free: 21.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 5.281e-05/0.3906, allocations: 117.8 kB / 0.7738 GB, free: 21.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.603e-05/0.3906, allocations: 11.84 kB / 0.7738 GB, free: 21.37 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001847/0.3908, allocations: 81.86 kB / 0.7739 GB, free: 21.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.3908, allocations: 7.984 kB / 0.7739 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3908, allocations: 0 / 0.7739 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3908, allocations: 3.938 kB / 0.7739 GB, free: 21.27 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.391, allocations: 185.6 kB / 0.7741 GB, free: 21.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.391, allocations: 4 kB / 0.7741 GB, free: 21.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.541e-05/0.3911, allocations: 7.984 kB / 0.7741 GB, free: 21.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.3911, allocations: 4 kB / 0.7741 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.545e-06/0.3911, allocations: 0 / 0.7741 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3911, allocations: 0 / 0.7741 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3911, allocations: 0 / 0.7741 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.3914, allocations: 0.7554 MB / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.43e-05/0.3914, allocations: 84.95 kB / 0.7749 GB, free: 20.11 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.487e-05/0.3915, allocations: 4 kB / 0.7749 GB, free: 20.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.119e-05/0.3915, allocations: 0 / 0.7749 GB, free: 20.11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.3916, allocations: 7.984 kB / 0.7749 GB, free: 20.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.3916, allocations: 4 kB / 0.7749 GB, free: 20.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.454e-05/0.3916, allocations: 103.3 kB / 0.775 GB, free: 19.99 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3916, allocations: 0 / 0.775 GB, free: 19.99 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003792/0.392, allocations: 63.92 kB / 0.7751 GB, free: 19.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0002243/0.3923, allocations: 167.6 kB / 0.7752 GB, free: 19.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.3924, allocations: 31.98 kB / 0.7753 GB, free: 19.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.3924, allocations: 0 / 0.7753 GB, free: 19.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.184e-05/0.3925, allocations: 27.98 kB / 0.7753 GB, free: 19.7 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.3928, allocations: 23.84 kB / 0.7753 GB, free: 19.68 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/0.3932, allocations: 347.5 kB / 0.7756 GB, free: 19.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.3933, allocations: 0.6926 MB / 0.7763 GB, free: 18.58 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 3.509e-05/0.3933, allocations: 7.938 kB / 0.7763 GB, free: 18.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.368e-05/0.3934, allocations: 15.42 kB / 0.7763 GB, free: 18.55 MB / 458.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3934, allocations: 0 / 0.7763 GB, free: 18.55 MB / 458.7 MB Notification: Performance of Templates: time 0.003609/0.397, allocations: 1.752 MB / 0.778 GB, free: 16.82 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.makefile (rm -f BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; mkfifo BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe >> ../files/BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.sim & ./BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.HAM.Examples.GasGapClosed.pipe 2>&1)