Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions") translateModel(ModelicaTest.Math.TestScalarFunctions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009942/0.009942, allocations: 99.83 kB / 15.73 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.00189/0.00189, allocations: 189.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.551/1.551, allocations: 205.1 MB / 222.6 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3283/0.3283, allocations: 39.94 MB / 309.8 MB, free: 9.391 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 67.91 kB / 435.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3, allocations: 56.88 MB / 492.6 MB, free: 19.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001654/0.3017, allocations: 0.4924 MB / 493.1 MB, free: 19.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.3035, allocations: 1.427 MB / 494.6 MB, free: 18.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.157e-05/0.3035, allocations: 0 / 494.6 MB, free: 18.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.556e-05/0.3035, allocations: 0 / 494.6 MB, free: 18.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.53e-06/0.3035, allocations: 0 / 494.6 MB, free: 18.17 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:4:3-36:22:writable] Warning: Pure function 'ModelicaTest.Math.ScalarFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.304, allocations: 110.1 kB / 494.7 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.945e-05/0.3041, allocations: 6.25 kB / 494.7 MB, free: 18.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.136e-05/0.3041, allocations: 1.859 kB / 494.7 MB, free: 18.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.424e-05/0.3042, allocations: 0 / 494.7 MB, free: 18.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.997e-05/0.3042, allocations: 9.078 kB / 494.7 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.3042, allocations: 0 / 494.7 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002796/0.3045, allocations: 59.27 kB / 494.7 MB, free: 18.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.675e-06/0.3045, allocations: 3.984 kB / 494.7 MB, free: 18.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.545e-05/0.3045, allocations: 1.406 kB / 494.7 MB, free: 18.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.751e-05/0.3046, allocations: 31.69 kB / 494.8 MB, free: 18.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3046, allocations: 5.438 kB / 494.8 MB, free: 18.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3046, allocations: 4 kB / 494.8 MB, free: 18.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.3046, allocations: 0 / 494.8 MB, free: 18.05 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002263/0.3049, allocations: 346.8 kB / 495.1 MB, free: 17.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.3049, allocations: 13.27 kB / 495.1 MB, free: 17.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.319e-05/0.305, allocations: 2.062 kB / 495.1 MB, free: 17.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.066e-05/0.305, allocations: 161.9 kB / 495.3 MB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.305, allocations: 1.438 kB / 495.3 MB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.305, allocations: 1.438 kB / 495.3 MB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.348e-05/0.3051, allocations: 37.73 kB / 495.3 MB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.3051, allocations: 0 / 495.3 MB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.3052, allocations: 0 / 495.3 MB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.3052, allocations: 4.969 kB / 495.3 MB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.957e-05/0.3052, allocations: 1.891 kB / 495.3 MB, free: 17.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.425e-05/0.3053, allocations: 147.6 kB / 495.5 MB, free: 17.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.271e-05/0.3053, allocations: 21.47 kB / 495.5 MB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.442e-05/0.3054, allocations: 6.766 kB / 495.5 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.3054, allocations: 5.062 kB / 495.5 MB, free: 17.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.3054, allocations: 62.12 kB / 495.6 MB, free: 17.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3054, allocations: 0 / 495.6 MB, free: 17.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001584/0.3056, allocations: 69.28 kB / 495.6 MB, free: 17.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.3056, allocations: 78.95 kB / 495.7 MB, free: 16.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.283e-05/0.3057, allocations: 89.86 kB / 495.8 MB, free: 16.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.642e-06/0.3057, allocations: 25.7 kB / 495.8 MB, free: 16.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.307e-05/0.3057, allocations: 81.36 kB / 495.9 MB, free: 16.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.3057, allocations: 4 kB / 495.9 MB, free: 16.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.3057, allocations: 12.55 kB / 495.9 MB, free: 16.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.777e-05/0.3058, allocations: 312.6 kB / 496.2 MB, free: 16.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.3058, allocations: 1.797 kB / 496.2 MB, free: 16.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.143e-06/0.3058, allocations: 5.094 kB / 496.2 MB, free: 16.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.865e-05/0.3059, allocations: 60.22 kB / 496.3 MB, free: 16.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.3059, allocations: 0 / 496.3 MB, free: 16.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.438e-05/0.306, allocations: 77.28 kB / 496.4 MB, free: 16.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.306, allocations: 36.3 kB / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.306, allocations: 0 / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.306, allocations: 0 / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.306, allocations: 1.5 kB / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.306, allocations: 0.7969 kB / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.477e-05/0.3061, allocations: 0 / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.3061, allocations: 5.141 kB / 496.4 MB, free: 16.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.627e-05/0.3061, allocations: 139.5 kB / 496.6 MB, free: 16.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-06/0.3061, allocations: 9 kB / 496.6 MB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.026e-05/0.3062, allocations: 3.922 kB / 496.6 MB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.3062, allocations: 0.9375 kB / 496.6 MB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3062, allocations: 0 / 496.6 MB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3062, allocations: 1.031 kB / 496.6 MB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.029e-05/0.3062, allocations: 145.2 kB / 496.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3063, allocations: 0 / 496.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.243e-06/0.3063, allocations: 1.938 kB / 496.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.3063, allocations: 3.938 kB / 496.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.3063, allocations: 1.062 kB / 496.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3063, allocations: 0.7031 kB / 496.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3063, allocations: 5.312 kB / 496.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.277e-05/0.3064, allocations: 92.02 kB / 496.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.198e-05/0.3064, allocations: 81.8 kB / 496.9 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.3064, allocations: 9.844 kB / 496.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.968e-06/0.3064, allocations: 2.141 kB / 496.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.058e-05/0.3064, allocations: 0 / 496.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.3065, allocations: 2.219 kB / 496.9 MB, free: 15.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.254e-05/0.3065, allocations: 79.31 kB / 497 MB, free: 15.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3065, allocations: 0 / 497 MB, free: 15.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002217/0.3067, allocations: 12.77 kB / 497 MB, free: 15.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.00025/0.307, allocations: 132.1 kB / 497.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.281e-05/0.3071, allocations: 57.97 kB / 497.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3071, allocations: 0 / 497.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.073e-05/0.3071, allocations: 64.02 kB / 497.2 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/0.3072, allocations: 14.72 kB / 497.3 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001411/0.3074, allocations: 81.39 kB / 497.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.96e-05/0.3074, allocations: 0.672 MB / 498 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.328e-06/0.3075, allocations: 0 / 498 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.364e-06/0.3075, allocations: 7.438 kB / 498 MB, free: 14.54 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3075, allocations: 0 / 498 MB, free: 14.54 MB / 382.1 MB Notification: Performance of Templates: time 0.002501/0.31, allocations: 0.5199 MB / 498.5 MB, free: 14.45 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.TestScalarFunctions.pipe 2>&1)