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.001617/0.001617, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002333/0.002333, allocations: 194.3 kB / 16.25 MB, free: 6.625 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.656/1.656, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.361/0.361, allocations: 39.93 MB / 309.4 MB, free: 9.031 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.001346/0.001346, allocations: 67.91 kB / 377.1 MB, free: 12.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1133, allocations: 56.88 MB / 434 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001756/0.1151, allocations: 0.5635 MB / 434.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.117, allocations: 1.418 MB / 436 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.741e-05/0.117, allocations: 0 / 436 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.846e-05/0.1171, allocations: 0 / 436 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.281e-06/0.1171, allocations: 0 / 436 MB, free: 1.781 MB / 366.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.000482/0.1176, allocations: 91.78 kB / 436 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.529e-05/0.1176, allocations: 4 kB / 436.1 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.732e-05/0.1177, allocations: 4 kB / 436.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.527e-05/0.1177, allocations: 0 / 436.1 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.12e-05/0.1177, allocations: 4 kB / 436.1 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.1177, allocations: 0 / 436.1 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.1179, allocations: 39.97 kB / 436.1 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-06/0.1179, allocations: 0 / 436.1 MB, free: 1.641 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.807e-05/0.118, allocations: 7.984 kB / 436.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.1181, allocations: 39.88 kB / 436.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1181, allocations: 0 / 436.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.1181, allocations: 0 / 436.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1181, allocations: 7.938 kB / 436.2 MB, free: 1.586 MB / 366.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.0003918/0.1185, allocations: 341.3 kB / 436.5 MB, free: 1.199 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1186, allocations: 19.89 kB / 436.5 MB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.061e-05/0.1186, allocations: 0.9375 kB / 436.5 MB, free: 1.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.1187, allocations: 164.4 kB / 436.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.1188, allocations: 384 / 436.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.306e-06/0.1188, allocations: 384 / 436.7 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.1189, allocations: 38.02 kB / 436.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-06/0.1189, allocations: 0 / 436.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.1189, allocations: 0 / 436.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1189, allocations: 0 / 436.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.951e-05/0.1189, allocations: 4 kB / 436.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.1191, allocations: 149.7 kB / 436.9 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.34e-05/0.1191, allocations: 22.52 kB / 436.9 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.737e-05/0.1192, allocations: 8.953 kB / 436.9 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.1192, allocations: 0 / 436.9 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.808e-05/0.1192, allocations: 60.2 kB / 436.9 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.1192, allocations: 0 / 436.9 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.00018/0.1194, allocations: 83.16 kB / 437 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.838e-05/0.1195, allocations: 77.11 kB / 437.1 MB, free: 444 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.576e-05/0.1196, allocations: 93.86 kB / 437.2 MB, free: 340 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.1196, allocations: 25.7 kB / 437.2 MB, free: 308 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.1196, allocations: 84.14 kB / 437.3 MB, free: 220 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.1196, allocations: 0 / 437.3 MB, free: 220 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.1197, allocations: 9.719 kB / 437.3 MB, free: 204 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1199, allocations: 310.8 kB / 437.6 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.378e-06/0.1199, allocations: 8.125 kB / 437.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.939e-06/0.1199, allocations: 0 / 437.6 MB, free: 15.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.203e-05/0.1199, allocations: 68.25 kB / 437.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1199, allocations: 3.938 kB / 437.7 MB, free: 15.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.438e-05/0.12, allocations: 63.34 kB / 437.8 MB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.1201, allocations: 33.64 kB / 437.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.84e-06/0.1201, allocations: 0 / 437.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.1201, allocations: 0 / 437.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.455e-06/0.1201, allocations: 8.078 kB / 437.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1201, allocations: 0 / 437.8 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.135e-05/0.1202, allocations: 8 kB / 437.8 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.1202, allocations: 0 / 437.8 MB, free: 15.66 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.436e-05/0.1203, allocations: 131.5 kB / 437.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.264e-05/0.1203, allocations: 7.938 kB / 437.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.292e-05/0.1203, allocations: 7.125 kB / 437.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1203, allocations: 0 / 437.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1203, allocations: 3.984 kB / 438 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1203, allocations: 4 kB / 438 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001108/0.1204, allocations: 145.7 kB / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1204, allocations: 0 / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1204, allocations: 4 kB / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1204, allocations: 3.938 kB / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.1205, allocations: 0 / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1205, allocations: 0 / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1205, allocations: 0 / 438.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.1206, allocations: 98.77 kB / 438.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.672e-05/0.1206, allocations: 77.11 kB / 438.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.357e-05/0.1206, allocations: 3.938 kB / 438.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.1207, allocations: 0 / 438.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.1207, allocations: 4 kB / 438.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.1207, allocations: 0 / 438.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.784e-05/0.1207, allocations: 75.28 kB / 438.4 MB, free: 15 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1207, allocations: 0 / 438.4 MB, free: 15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002019/0.1209, allocations: 15.98 kB / 438.4 MB, free: 14.98 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.0003461/0.1213, allocations: 150.4 kB / 438.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.1214, allocations: 59.41 kB / 438.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1214, allocations: 0 / 438.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.974e-05/0.1215, allocations: 51.41 kB / 438.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.1216, allocations: 8 kB / 438.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001759/0.1218, allocations: 92.97 kB / 438.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000285/0.1221, allocations: 0.6729 MB / 439.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.1221, allocations: 0 / 439.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.004e-05/0.1221, allocations: 7.438 kB / 439.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1221, allocations: 0 / 439.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of Templates: time 0.002819/0.1249, allocations: 0.715 MB / 440.1 MB, free: 13.16 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)