Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Media.check_Medium.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.Media.check_Medium,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.check_Medium") translateModel(Physiolibrary.Media.check_Medium,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Media.check_Medium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 182.4 kB / 15.98 MB, free: 5.766 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.38/1.38, 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.001052/0.001051, allocations: 103.8 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3784/0.3784, allocations: 36.67 MB / 376.7 MB, free: 41.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 446.4 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1096, allocations: 58.91 MB / 0.4935 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Media.check_Medium): time 0.2064/0.316, allocations: 7.861 MB / 0.5011 GB, free: 38.62 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.3182, allocations: 2.166 MB / 0.5033 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001155/0.3184, allocations: 1.438 kB / 0.5033 GB, free: 37.12 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.3188, allocations: 49.45 kB / 0.5033 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002416/0.3212, allocations: 0.777 MB / 0.5041 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.3219, allocations: 206.1 kB / 0.5043 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.3223, allocations: 423.9 kB / 0.5047 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.3225, allocations: 65.94 kB / 0.5047 GB, free: 36.44 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001109/0.3236, allocations: 443 kB / 0.5051 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003679/0.324, allocations: 248.8 kB / 0.5054 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.126e-05/0.3241, allocations: 10.09 kB / 0.5054 GB, free: 36.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/0.3275, allocations: 1.111 MB / 0.5065 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.3277, allocations: 119.8 kB / 0.5066 GB, free: 35.87 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.3278, allocations: 135.6 kB / 0.5067 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002782/0.3306, allocations: 1.161 MB / 0.5079 GB, free: 35.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3307, allocations: 0 / 0.5079 GB, free: 35.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3307, allocations: 0 / 0.5079 GB, free: 35.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.3307, allocations: 3.938 kB / 0.5079 GB, free: 35.41 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001058/0.3317, allocations: 0.6801 MB / 0.5085 GB, free: 34.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3318, allocations: 8.531 kB / 0.5085 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007787/0.3326, allocations: 169.6 kB / 0.5087 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.3329, allocations: 248.4 kB / 0.5089 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.3329, allocations: 17.28 kB / 0.5089 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.3329, allocations: 21.03 kB / 0.509 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006171/0.3336, allocations: 0.4919 MB / 0.5094 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3336, allocations: 4.906 kB / 0.5095 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.304e-05/0.3336, allocations: 10.56 kB / 0.5095 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.38e-05/0.3337, allocations: 18.27 kB / 0.5095 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007649/0.3345, allocations: 0.569 MB / 0.51 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.336, allocations: 1.424 MB / 0.5114 GB, free: 33.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.3364, allocations: 255.9 kB / 0.5117 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.3365, allocations: 164.8 kB / 0.5118 GB, free: 33.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000182/0.3367, allocations: 147.5 kB / 0.512 GB, free: 32.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.3368, allocations: 30.56 kB / 0.512 GB, free: 32.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.3368, allocations: 0 / 0.512 GB, free: 32.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007122/0.3375, allocations: 0.5351 MB / 0.5125 GB, free: 32.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.3375, allocations: 54.44 kB / 0.5126 GB, free: 32.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.3377, allocations: 201 kB / 0.5128 GB, free: 32.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.3377, allocations: 31.67 kB / 0.5128 GB, free: 32.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.66e-05/0.3378, allocations: 175.7 kB / 0.513 GB, free: 32.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.105e-05/0.3378, allocations: 128.4 kB / 0.5131 GB, free: 32.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3379, allocations: 111 kB / 0.5132 GB, free: 32.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.967e-05/0.338, allocations: 331.6 kB / 0.5135 GB, free: 31.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.3382, allocations: 158.7 kB / 0.5137 GB, free: 31.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.3384, allocations: 332.9 kB / 0.514 GB, free: 31.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00046/0.3389, allocations: 0.5365 MB / 0.5145 GB, free: 31.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.3389, allocations: 3.25 kB / 0.5145 GB, free: 31.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000658/0.3396, allocations: 0.5446 MB / 0.515 GB, free: 30.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3396, allocations: 6.469 kB / 0.515 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.3396, allocations: 10.47 kB / 0.515 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.3396, allocations: 10.58 kB / 0.5151 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003028/0.34, allocations: 101.6 kB / 0.5152 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.34, allocations: 14.84 kB / 0.5152 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.3402, allocations: 49.7 kB / 0.5152 GB, free: 30.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.607e-05/0.3402, allocations: 36.59 kB / 0.5153 GB, free: 30.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (48): * Single equations (assignments): 45 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 2 * 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.0001306/0.3404, allocations: 174.7 kB / 0.5154 GB, free: 30.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.394e-05/0.3404, allocations: 28.09 kB / 0.5154 GB, free: 30.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/0.3415, allocations: 0.6293 MB / 0.5161 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.3415, allocations: 3.609 kB / 0.5161 GB, free: 30.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3415, allocations: 4.797 kB / 0.5161 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3416, allocations: 0.5156 kB / 0.5161 GB, free: 30.44 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.3418, allocations: 295.3 kB / 0.5163 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3419, allocations: 0 / 0.5163 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.342, allocations: 43.25 kB / 0.5164 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.342, allocations: 0 / 0.5164 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.342, allocations: 17.56 kB / 0.5164 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.342, allocations: 0.625 kB / 0.5164 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.342, allocations: 0 / 0.5164 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006472/0.3427, allocations: 1.003 MB / 0.5174 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.3428, allocations: 127 kB / 0.5175 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.3429, allocations: 11.12 kB / 0.5175 GB, free: 29.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.914e-05/0.343, allocations: 12.59 kB / 0.5175 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.36e-05/0.343, allocations: 17.02 kB / 0.5175 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.171e-05/0.3431, allocations: 9.781 kB / 0.5176 GB, free: 29.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001257/0.3432, allocations: 190.9 kB / 0.5177 GB, free: 29.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3432, allocations: 4 kB / 0.5177 GB, free: 29.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008923/0.3441, allocations: 286.8 kB / 0.518 GB, free: 29.07 MB / 378.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 (19): * Single equations (assignments): 17 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0008374/0.3449, allocations: 0.5429 MB / 0.5185 GB, free: 28.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005322/0.3455, allocations: 384.1 kB / 0.5189 GB, free: 28.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3455, allocations: 3.281 kB / 0.5189 GB, free: 28.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.3457, allocations: 134.1 kB / 0.519 GB, free: 28.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.3461, allocations: 78 kB / 0.5191 GB, free: 28.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002832/0.349, allocations: 3.321 MB / 0.5224 GB, free: 26.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001819/0.3492, allocations: 0.7819 MB / 0.5231 GB, free: 26.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006701/0.3498, allocations: 185.8 kB / 0.5233 GB, free: 25.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.35, allocations: 105.9 kB / 0.5234 GB, free: 25.96 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.35, allocations: 0 / 0.5234 GB, free: 25.96 MB / 378.7 MB Notification: Performance of Templates: time 0.01403/0.3641, allocations: 9.863 MB / 0.533 GB, free: 25.07 MB / 378.7 MB make -j1 -f Physiolibrary_Physiolibrary.Media.check_Medium.makefile (rm -f Physiolibrary_Physiolibrary.Media.check_Medium.pipe ; mkfifo Physiolibrary_Physiolibrary.Media.check_Medium.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Media.check_Medium.pipe >> ../files/Physiolibrary_Physiolibrary.Media.check_Medium.sim & ./Physiolibrary_Physiolibrary.Media.check_Medium -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Media.check_Medium.pipe 2>&1)