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.001268/0.001268, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.617/1.617, allocations: 205.1 MB / 222.4 MB, free: 4.57 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.3614/0.3614, allocations: 39.94 MB / 309.7 MB, free: 9.293 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.001565/0.001566, allocations: 71.91 kB / 377.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1295, allocations: 56.88 MB / 434.5 MB, free: 3.727 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestScalarFunctions): time 0.001885/0.1315, allocations: 0.4909 MB / 435 MB, free: 3.234 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001912/0.1334, allocations: 1.426 MB / 436.4 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.96e-05/0.1334, allocations: 0 / 436.4 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.536e-05/0.1335, allocations: 0 / 436.4 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.1335, allocations: 0 / 436.4 MB, free: 1.789 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.0005239/0.134, allocations: 107.6 kB / 436.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.105e-05/0.1341, allocations: 0 / 436.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.1341, allocations: 4 kB / 436.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.609e-05/0.1341, allocations: 0 / 436.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.225e-05/0.1342, allocations: 0 / 436.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.983e-06/0.1342, allocations: 0 / 436.5 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001721/0.1343, allocations: 43.97 kB / 436.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.003e-06/0.1344, allocations: 0 / 436.6 MB, free: 1.637 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.973e-05/0.1344, allocations: 3.984 kB / 436.6 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.1345, allocations: 43.89 kB / 436.6 MB, free: 1.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1345, allocations: 0 / 436.6 MB, free: 1.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1345, allocations: 0 / 436.6 MB, free: 1.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1345, allocations: 4 kB / 436.6 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.0003298/0.1349, allocations: 337.3 kB / 436.9 MB, free: 1.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1349, allocations: 15.89 kB / 436.9 MB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.267e-05/0.1349, allocations: 4.938 kB / 437 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.1351, allocations: 160.4 kB / 437.1 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.1351, allocations: 4.312 kB / 437.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.1351, allocations: 384 / 437.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.882e-05/0.1352, allocations: 38 kB / 437.2 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.1352, allocations: 0 / 437.2 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.1352, allocations: 4 kB / 437.2 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1352, allocations: 0 / 437.2 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.902e-05/0.1353, allocations: 4 kB / 437.2 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00014/0.1354, allocations: 145.7 kB / 437.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.042e-05/0.1355, allocations: 18.52 kB / 437.3 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.73e-05/0.1355, allocations: 12.94 kB / 437.3 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.36e-06/0.1355, allocations: 0 / 437.3 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.609e-05/0.1356, allocations: 68.14 kB / 437.4 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1356, allocations: 0 / 437.4 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.1357, allocations: 67.3 kB / 437.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.1358, allocations: 81.23 kB / 437.5 MB, free: 452 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.019e-05/0.1359, allocations: 93.84 kB / 437.6 MB, free: 348 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.042e-05/0.1359, allocations: 25.7 kB / 437.7 MB, free: 316 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.834e-05/0.1359, allocations: 84.14 kB / 437.7 MB, free: 228 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.1359, allocations: 0 / 437.7 MB, free: 228 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.136, allocations: 13.72 kB / 437.8 MB, free: 208 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1361, allocations: 314.8 kB / 438.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.059e-05/0.1361, allocations: 4 kB / 438.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-06/0.1361, allocations: 4 kB / 438.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.016e-05/0.1362, allocations: 60.27 kB / 438.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1362, allocations: 3.938 kB / 438.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.808e-05/0.1363, allocations: 67.39 kB / 438.2 MB, free: 15.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.1363, allocations: 33.64 kB / 438.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1363, allocations: 0 / 438.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.1364, allocations: 0 / 438.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.1364, allocations: 0 / 438.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1364, allocations: 96 / 438.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.1364, allocations: 8 kB / 438.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1364, allocations: 3.938 kB / 438.2 MB, free: 15.67 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 9.199e-05/0.1365, allocations: 135.5 kB / 438.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.1365, allocations: 7.938 kB / 438.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.259e-05/0.1365, allocations: 3.125 kB / 438.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1366, allocations: 0 / 438.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1366, allocations: 0 / 438.4 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.1366, allocations: 7.984 kB / 438.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.1367, allocations: 145.7 kB / 438.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1367, allocations: 4 kB / 438.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1367, allocations: 4 kB / 438.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.1367, allocations: 3.938 kB / 438.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.855e-06/0.1367, allocations: 0 / 438.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1367, allocations: 0 / 438.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1367, allocations: 0 / 438.6 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.411e-05/0.1368, allocations: 94.83 kB / 438.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.759e-05/0.1369, allocations: 81.14 kB / 438.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.1369, allocations: 3.938 kB / 438.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-06/0.1369, allocations: 0 / 438.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.1369, allocations: 7.938 kB / 438.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.1369, allocations: 0 / 438.7 MB, free: 15.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.351e-05/0.137, allocations: 75.28 kB / 438.8 MB, free: 15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.137, allocations: 3.938 kB / 438.8 MB, free: 15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002071/0.1372, allocations: 16 kB / 438.8 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.0002835/0.1375, allocations: 138.6 kB / 439 MB, free: 14.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.773e-05/0.1376, allocations: 63.39 kB / 439 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1376, allocations: 4 kB / 439 MB, free: 14.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.891e-05/0.1376, allocations: 51.41 kB / 439.1 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.0001344/0.1378, allocations: 4 kB / 439.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000179/0.1379, allocations: 88.92 kB / 439.2 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002411/0.1382, allocations: 0.673 MB / 439.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.37e-06/0.1382, allocations: 4 kB / 439.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.23e-05/0.1382, allocations: 7.438 kB / 439.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1382, allocations: 3.938 kB / 439.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of Templates: time 0.002876/0.1411, allocations: 0.7034 MB / 440.6 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)