Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001154, allocations: 114.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.00132, allocations: 75.67 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1418, allocations: 62.44 MB / 481.5 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001574/0.1434, allocations: 489.6 kB / 481.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.1463, allocations: 2.275 MB / 484.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.633e-06/0.1463, allocations: 0 / 484.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.679e-06/0.1463, allocations: 0 / 484.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.373e-06/0.1464, allocations: 0 / 484.2 MB, free: 1.77 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-85:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:87:5-157:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto2' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:159:5-233:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:235:5-313:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.1483, allocations: 0.6228 MB / 484.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.494e-05/0.1483, allocations: 8 kB / 484.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.982e-05/0.1484, allocations: 0 / 484.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.1485, allocations: 23.91 kB / 484.9 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.119e-05/0.1485, allocations: 4 kB / 484.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-06/0.1486, allocations: 0 / 484.9 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009802/0.1495, allocations: 0.6628 MB / 485.5 MB, free: 464 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-06/0.1496, allocations: 0 / 485.5 MB, free: 464 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.94e-05/0.1496, allocations: 4 kB / 485.5 MB, free: 460 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005986/0.1502, allocations: 435.4 kB / 486 MB, free: 24 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1502, allocations: 3.938 kB / 486 MB, free: 20 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1502, allocations: 0 / 486 MB, free: 20 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.1502, allocations: 0 / 486 MB, free: 20 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003971/0.1506, allocations: 429.3 kB / 486.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.1507, allocations: 8.031 kB / 486.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.483e-05/0.1507, allocations: 84.22 kB / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.1508, allocations: 243.5 kB / 486.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.396e-05/0.1509, allocations: 154.9 kB / 486.9 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.188e-05/0.151, allocations: 154.7 kB / 487 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.253e-05/0.151, allocations: 105 kB / 487.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/0.1511, allocations: 79.27 kB / 487.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-05/0.1511, allocations: 154.6 kB / 487.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.184e-05/0.1512, allocations: 158.6 kB / 487.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.336e-05/0.1513, allocations: 154.5 kB / 487.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000259/0.1515, allocations: 442 kB / 488.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.064e-05/0.1516, allocations: 169.1 kB / 488.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.373e-05/0.1517, allocations: 84.08 kB / 488.3 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.1517, allocations: 79.28 kB / 488.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.113e-05/0.1518, allocations: 131.5 kB / 488.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.91e-07/0.1518, allocations: 3.938 kB / 488.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.605e-05/0.1518, allocations: 33.62 kB / 488.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/0.1519, allocations: 160.4 kB / 488.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.241e-05/0.152, allocations: 93.86 kB / 488.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.152, allocations: 25.7 kB / 488.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.812e-05/0.152, allocations: 80.14 kB / 488.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-06/0.152, allocations: 0 / 488.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.152, allocations: 13.72 kB / 488.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1522, allocations: 310.8 kB / 489.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.528e-06/0.1522, allocations: 0 / 489.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.235e-05/0.1522, allocations: 8 kB / 489.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.901e-05/0.1522, allocations: 75.28 kB / 489.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.601e-05/0.1523, allocations: 75.28 kB / 489.4 MB, free: 12.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.827e-05/0.1523, allocations: 41.56 kB / 489.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.839e-05/0.1524, allocations: 79.28 kB / 489.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.9e-05/0.1524, allocations: 75.28 kB / 489.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.171e-05/0.1525, allocations: 154.6 kB / 489.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.251e-05/0.1525, allocations: 87.25 kB / 489.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.354e-05/0.1526, allocations: 154.5 kB / 490 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.596e-05/0.1527, allocations: 79.22 kB / 490 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.1527, allocations: 79.28 kB / 490.1 MB, free: 11.59 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001223/0.1529, allocations: 260.4 kB / 490.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.448e-05/0.1529, allocations: 120.9 kB / 490.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.153, allocations: 108.1 kB / 490.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.142e-05/0.1531, allocations: 180.2 kB / 490.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.092e-05/0.1532, allocations: 180.2 kB / 491 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.489e-05/0.1532, allocations: 184.2 kB / 491.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.1535, allocations: 401.2 kB / 491.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.763e-05/0.1535, allocations: 108.9 kB / 491.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.515e-05/0.1536, allocations: 108.9 kB / 491.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.145e-05/0.1536, allocations: 184.2 kB / 491.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.018e-05/0.1537, allocations: 176.3 kB / 492.1 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.725e-05/0.1538, allocations: 180.2 kB / 492.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.081e-05/0.1539, allocations: 180.3 kB / 492.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.154, allocations: 311.8 kB / 492.7 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.615e-05/0.1541, allocations: 182 kB / 492.9 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.737e-05/0.1542, allocations: 188.1 kB / 493.1 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.318e-05/0.1543, allocations: 105 kB / 493.2 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.1544, allocations: 192.2 kB / 493.4 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.734e-05/0.1545, allocations: 104.9 kB / 493.5 MB, free: 7.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.947e-05/0.1545, allocations: 75.28 kB / 493.6 MB, free: 7.918 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1545, allocations: 0 / 493.6 MB, free: 7.918 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000484/0.155, allocations: 128 kB / 493.7 MB, free: 7.793 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0008468/0.1559, allocations: 420.6 kB / 494.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.875e-05/0.1559, allocations: 0 / 494.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1559, allocations: 0 / 494.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.163e-06/0.1559, allocations: 0 / 494.1 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003462/0.1563, allocations: 467.6 kB / 494.6 MB, free: 6.922 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001506/0.1564, allocations: 156.3 kB / 494.7 MB, free: 6.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.1567, allocations: 0.6768 MB / 495.4 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.312e-06/0.1567, allocations: 0 / 495.4 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.119e-05/0.1567, allocations: 7.438 kB / 495.4 MB, free: 6.035 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1567, allocations: 0 / 495.4 MB, free: 6.035 MB / 366.1 MB Notification: Performance of Templates: time 0.006636/0.1634, allocations: 3.162 MB / 498.6 MB, free: 2.875 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches