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.008966/0.008966, allocations: 101.9 kB / 15.73 MB, free: 6.031 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.001854/0.001854, allocations: 197.2 kB / 16.67 MB, free: 5.969 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.807/1.807, allocations: 205.1 MB / 222.5 MB, free: 4.371 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.4224/0.4224, allocations: 39.94 MB / 309.8 MB, free: 9.676 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.001446/0.001446, allocations: 67.91 kB / 435.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4331/0.4345, allocations: 56.88 MB / 492.6 MB, free: 19.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.002321/0.4369, allocations: 499.2 kB / 493.1 MB, free: 19.12 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00287/0.4398, allocations: 1.428 MB / 494.6 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.596e-05/0.4399, allocations: 0 / 494.6 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.672e-05/0.4399, allocations: 0 / 494.6 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.915e-06/0.4399, allocations: 1.125 kB / 494.6 MB, free: 18.09 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.0007575/0.4407, allocations: 108.7 kB / 494.7 MB, free: 18.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.838e-05/0.4408, allocations: 6.359 kB / 494.7 MB, free: 18.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.934e-05/0.4408, allocations: 1.797 kB / 494.7 MB, free: 18.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.04e-05/0.4409, allocations: 0 / 494.7 MB, free: 18.02 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.571e-05/0.4409, allocations: 1.891 kB / 494.7 MB, free: 18.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.017e-06/0.4409, allocations: 0 / 494.7 MB, free: 18.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003772/0.4413, allocations: 75.16 kB / 494.7 MB, free: 17.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.4413, allocations: 0 / 494.7 MB, free: 17.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.716e-05/0.4414, allocations: 1.219 kB / 494.7 MB, free: 17.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001252/0.4415, allocations: 27.67 kB / 494.8 MB, free: 17.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4415, allocations: 0.75 kB / 494.8 MB, free: 17.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4415, allocations: 5.125 kB / 494.8 MB, free: 17.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.468e-06/0.4415, allocations: 0 / 494.8 MB, free: 17.98 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.0003058/0.4418, allocations: 342.7 kB / 495.1 MB, free: 17.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.4419, allocations: 16.98 kB / 495.1 MB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.442, allocations: 0.9375 kB / 495.1 MB, free: 17.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.113e-05/0.442, allocations: 162.8 kB / 495.3 MB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.4421, allocations: 384 / 495.3 MB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.4421, allocations: 1.469 kB / 495.3 MB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.4422, allocations: 38.53 kB / 495.3 MB, free: 17.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.4422, allocations: 0 / 495.3 MB, free: 17.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.4422, allocations: 0 / 495.3 MB, free: 17.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.4422, allocations: 9.641 kB / 495.3 MB, free: 17.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.072e-05/0.4423, allocations: 5.031 kB / 495.3 MB, free: 17.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001223/0.4424, allocations: 148.1 kB / 495.5 MB, free: 17.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.092e-05/0.4425, allocations: 17.27 kB / 495.5 MB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.908e-05/0.4425, allocations: 6.672 kB / 495.5 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.4425, allocations: 1.125 kB / 495.5 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.4426, allocations: 65.95 kB / 495.6 MB, free: 17.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.4426, allocations: 4 kB / 495.6 MB, free: 17.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002009/0.4428, allocations: 65.55 kB / 495.6 MB, free: 16.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.4428, allocations: 78.39 kB / 495.7 MB, free: 16.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.086e-05/0.4429, allocations: 90.42 kB / 495.8 MB, free: 16.78 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.4429, allocations: 25.7 kB / 495.8 MB, free: 16.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.392e-05/0.4429, allocations: 81.55 kB / 495.9 MB, free: 16.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.4429, allocations: 4.844 kB / 495.9 MB, free: 16.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.573e-05/0.443, allocations: 12.56 kB / 495.9 MB, free: 16.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.4431, allocations: 315.6 kB / 496.2 MB, free: 16.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.548e-05/0.4431, allocations: 2.375 kB / 496.2 MB, free: 16.33 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-06/0.4431, allocations: 1.281 kB / 496.2 MB, free: 16.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.741e-05/0.4432, allocations: 60.33 kB / 496.3 MB, free: 16.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4432, allocations: 0 / 496.3 MB, free: 16.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.496e-05/0.4433, allocations: 68.19 kB / 496.4 MB, free: 16.19 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.4433, allocations: 36.67 kB / 496.4 MB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.4433, allocations: 0.9844 kB / 496.4 MB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.4434, allocations: 9.438 kB / 496.4 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-06/0.4434, allocations: 4 kB / 496.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.4434, allocations: 0 / 496.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.262e-05/0.4434, allocations: 2.125 kB / 496.4 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.4434, allocations: 0 / 496.4 MB, free: 16.14 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 8.406e-05/0.4435, allocations: 135.2 kB / 496.6 MB, free: 16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.4435, allocations: 5.062 kB / 496.6 MB, free: 16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.552e-05/0.4436, allocations: 3.781 kB / 496.6 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.4436, allocations: 5.344 kB / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4436, allocations: 0 / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.4436, allocations: 0.6094 kB / 496.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.146e-05/0.4437, allocations: 154.5 kB / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.4437, allocations: 0 / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-07/0.4437, allocations: 0 / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.4437, allocations: 5.703 kB / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.4437, allocations: 0 / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.4437, allocations: 2.109 kB / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4438, allocations: 0 / 496.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.4439, allocations: 96.2 kB / 496.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.527e-05/0.4439, allocations: 78.42 kB / 496.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.4439, allocations: 5.375 kB / 496.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.228e-05/0.4439, allocations: 1.375 kB / 496.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.142e-05/0.444, allocations: 0.7031 kB / 496.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.444, allocations: 1.375 kB / 496.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.657e-05/0.444, allocations: 75.28 kB / 497 MB, free: 15.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.444, allocations: 0 / 497 MB, free: 15.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.4443, allocations: 18.47 kB / 497 MB, free: 15.5 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.0003604/0.4447, allocations: 133.8 kB / 497.1 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.4448, allocations: 63.12 kB / 497.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4448, allocations: 0 / 497.2 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.392e-05/0.4449, allocations: 60.03 kB / 497.2 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.4451, allocations: 2.844 kB / 497.3 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.4453, allocations: 91.47 kB / 497.3 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.4455, allocations: 0.6706 MB / 498 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.926e-06/0.4455, allocations: 5.578 kB / 498 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.512e-05/0.4455, allocations: 8.5 kB / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4455, allocations: 0 / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of Templates: time 0.004167/0.4497, allocations: 0.5283 MB / 498.6 MB, free: 14.36 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)