Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.conf.json 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/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-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) Running command: translateModel(Physiolibrary.Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater") translateModel(Physiolibrary.Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 181.1 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 239.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 107.8 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3416/0.3416, allocations: 36.67 MB / 376.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 67.89 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09783/0.09905, allocations: 58.91 MB / 0.4935 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Chemical.Examples.HeatingOfWater): time 0.1808/0.2799, allocations: 3.766 MB / 0.4971 GB, free: 40.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004567/0.2845, allocations: 4.709 MB / 0.5017 GB, free: 37.89 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000376/0.2849, allocations: 10.97 kB / 0.5018 GB, free: 37.89 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003923/0.2853, allocations: 96.31 kB / 0.5018 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009072/0.2863, allocations: 383.5 kB / 0.5022 GB, free: 37.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001167/0.2874, allocations: 471.8 kB / 0.5027 GB, free: 37.47 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006032/0.288, allocations: 0.5608 MB / 0.5032 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003843/0.2884, allocations: 320.9 kB / 0.5035 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.2887, allocations: 279.7 kB / 0.5038 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003535/0.2891, allocations: 297.1 kB / 0.5041 GB, free: 37 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.874e-05/0.2892, allocations: 34.12 kB / 0.5041 GB, free: 37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.2904, allocations: 442.2 kB / 0.5045 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.2905, allocations: 104.7 kB / 0.5046 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002391/0.2907, allocations: 266.4 kB / 0.5049 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.2921, allocations: 1.008 MB / 0.5059 GB, free: 36.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2921, allocations: 0.7031 kB / 0.5059 GB, free: 36.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.2921, allocations: 0 / 0.5059 GB, free: 36.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.2921, allocations: 0 / 0.5059 GB, free: 36.27 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001291/0.2934, allocations: 0.8502 MB / 0.5067 GB, free: 35.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.2935, allocations: 12.31 kB / 0.5067 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003252/0.2938, allocations: 89.56 kB / 0.5068 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004172/0.2942, allocations: 355.8 kB / 0.5071 GB, free: 35.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.853e-05/0.2943, allocations: 36.47 kB / 0.5072 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.06e-05/0.2943, allocations: 47.53 kB / 0.5072 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006161/0.295, allocations: 460.5 kB / 0.5076 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.295, allocations: 0.6875 kB / 0.5076 GB, free: 35.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.295, allocations: 22.22 kB / 0.5077 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.295, allocations: 12.06 kB / 0.5077 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000695/0.2957, allocations: 0.5102 MB / 0.5082 GB, free: 34.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.2976, allocations: 1.547 MB / 0.5097 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006664/0.2983, allocations: 365.8 kB / 0.51 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001728/0.2985, allocations: 119.5 kB / 0.5102 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001848/0.3004, allocations: 1.583 MB / 0.5117 GB, free: 32.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.741e-05/0.3004, allocations: 41.78 kB / 0.5117 GB, free: 32.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.673e-06/0.3004, allocations: 0 / 0.5117 GB, free: 32.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.01386/0.3143, allocations: 2.327 MB / 0.514 GB, free: 31.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.3143, allocations: 56 kB / 0.5141 GB, free: 31.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.3147, allocations: 293.8 kB / 0.5143 GB, free: 31.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.3147, allocations: 36.95 kB / 0.5144 GB, free: 31.16 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3148, allocations: 274.2 kB / 0.5146 GB, free: 30.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.339e-05/0.3149, allocations: 105.6 kB / 0.5147 GB, free: 30.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.3151, allocations: 88.03 kB / 0.5148 GB, free: 30.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.704e-05/0.3152, allocations: 346.8 kB / 0.5152 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.3154, allocations: 132.9 kB / 0.5153 GB, free: 30.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.3156, allocations: 267.8 kB / 0.5155 GB, free: 30.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004542/0.3161, allocations: 426.4 kB / 0.5159 GB, free: 29.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3161, allocations: 7.938 kB / 0.516 GB, free: 29.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003799/0.3199, allocations: 0.8147 MB / 0.5167 GB, free: 29.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.3199, allocations: 10.53 kB / 0.5168 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3199, allocations: 3.219 kB / 0.5168 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003434/0.3234, allocations: 414 kB / 0.5172 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.3237, allocations: 86.98 kB / 0.5172 GB, free: 29.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005271/0.3289, allocations: 3.702 MB / 0.5209 GB, free: 26.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004591/0.3294, allocations: 38.08 kB / 0.5209 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-05/0.3295, allocations: 19.78 kB / 0.5209 GB, free: 26.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002179/0.3297, allocations: 171.5 kB / 0.5211 GB, free: 26.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.3298, allocations: 35.2 kB / 0.5211 GB, free: 26.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004673/0.3345, allocations: 0.8259 MB / 0.5219 GB, free: 25.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.3345, allocations: 3.125 kB / 0.5219 GB, free: 25.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3345, allocations: 7.25 kB / 0.5219 GB, free: 25.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3345, allocations: 3.375 kB / 0.5219 GB, free: 25.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00075/0.3353, allocations: 0.6152 MB / 0.5225 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.3353, allocations: 11.97 kB / 0.5225 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.3355, allocations: 45.83 kB / 0.5226 GB, free: 25.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004334/0.3398, allocations: 492.8 kB / 0.5231 GB, free: 25.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.779e-05/0.3399, allocations: 18.23 kB / 0.5231 GB, free: 25.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005612/0.3455, allocations: 4.911 MB / 0.5279 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3455, allocations: 3 kB / 0.5279 GB, free: 20.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07317/0.4187, allocations: 15.13 MB / 0.5426 GB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.4188, allocations: 111.3 kB / 0.5428 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.913e-05/0.4189, allocations: 15.34 kB / 0.5428 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000339/0.4192, allocations: 15.38 kB / 0.5428 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.4194, allocations: 46.31 kB / 0.5428 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/0.4194, allocations: 20.38 kB / 0.5428 GB, free: 12.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.4196, allocations: 200.3 kB / 0.543 GB, free: 11.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4196, allocations: 0 / 0.543 GB, free: 11.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001247/0.4209, allocations: 333.6 kB / 0.5434 GB, free: 11.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * 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 (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004525/0.4213, allocations: 281.7 kB / 0.5436 GB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.4225, allocations: 0.6846 MB / 0.5443 GB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4225, allocations: 3.938 kB / 0.5443 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008005/0.4233, allocations: 0.6204 MB / 0.5449 GB, free: 10.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.424, allocations: 92.73 kB / 0.545 GB, free: 10.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/0.4271, allocations: 1.968 MB / 0.5469 GB, free: 9.434 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.4275, allocations: 0.8392 MB / 0.5477 GB, free: 8.734 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000334/0.4278, allocations: 72.11 kB / 0.5478 GB, free: 8.711 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4279, allocations: 66.95 kB / 0.5479 GB, free: 8.695 MB / 378.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4279, allocations: 3.938 kB / 0.5479 GB, free: 8.691 MB / 378.7 MB Notification: Performance of Templates: time 0.02569/0.4536, allocations: 16.64 MB / 0.5641 GB, free: 200 kB / 378.7 MB make -j1 -f Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.makefile (rm -f Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.pipe ; mkfifo Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.pipe >> ../files/Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.sim & ./Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Chemical.Examples.HeatingOfWater.pipe 2>&1)