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.001549/0.001549, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00175/0.001751, allocations: 199.5 kB / 19.34 MB, free: 3.68 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.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2103/0.2103, allocations: 46.11 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 84.41 kB / 419 MB, free: 18.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1124, allocations: 62.44 MB / 481.4 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001535/0.1139, allocations: 490 kB / 481.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002951/0.1169, allocations: 2.275 MB / 484.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-06/0.1169, allocations: 0 / 484.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.838e-06/0.1169, allocations: 0 / 484.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.062e-06/0.1169, allocations: 0 / 484.2 MB, free: 1.738 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.001861/0.1188, allocations: 0.6272 MB / 484.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.6e-05/0.1189, allocations: 8 kB / 484.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.766e-05/0.1189, allocations: 0 / 484.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00011/0.119, allocations: 15.97 kB / 484.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.827e-05/0.119, allocations: 7.938 kB / 484.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.278e-06/0.1191, allocations: 0 / 484.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009425/0.12, allocations: 0.6554 MB / 485.5 MB, free: 436 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.761e-06/0.12, allocations: 4 kB / 485.5 MB, free: 432 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.27e-05/0.12, allocations: 4 kB / 485.5 MB, free: 428 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005387/0.1206, allocations: 439.4 kB / 485.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1206, allocations: 0 / 485.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1206, allocations: 4 kB / 486 MB, free: 15.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.1206, allocations: 0 / 486 MB, free: 15.98 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003431/0.121, allocations: 433.1 kB / 486.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.121, allocations: 12.03 kB / 486.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.7e-05/0.1211, allocations: 76.22 kB / 486.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.931e-05/0.1212, allocations: 239.7 kB / 486.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.1212, allocations: 150.9 kB / 486.8 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.1213, allocations: 154.7 kB / 487 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.779e-05/0.1213, allocations: 112.9 kB / 487.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/0.1214, allocations: 79.28 kB / 487.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.974e-05/0.1214, allocations: 150.6 kB / 487.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-05/0.1215, allocations: 154.6 kB / 487.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.93e-05/0.1215, allocations: 150.6 kB / 487.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002301/0.1218, allocations: 441.9 kB / 488.1 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.82e-05/0.1218, allocations: 177.1 kB / 488.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.162e-05/0.1219, allocations: 88.08 kB / 488.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.1219, allocations: 75.28 kB / 488.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.354e-05/0.122, allocations: 131.5 kB / 488.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.122, allocations: 0 / 488.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.372e-05/0.122, allocations: 29.7 kB / 488.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.1221, allocations: 152.4 kB / 488.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.5e-05/0.1221, allocations: 93.86 kB / 488.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1222, allocations: 25.7 kB / 488.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.951e-05/0.1222, allocations: 92.02 kB / 488.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.323e-06/0.1222, allocations: 0 / 488.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.414e-05/0.1222, allocations: 17.7 kB / 488.9 MB, free: 12.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.486e-05/0.1223, allocations: 314.8 kB / 489.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.767e-06/0.1223, allocations: 0 / 489.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.892e-05/0.1224, allocations: 0 / 489.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.617e-05/0.1224, allocations: 79.31 kB / 489.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.158e-05/0.1224, allocations: 75.28 kB / 489.4 MB, free: 12.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.512e-05/0.1225, allocations: 37.58 kB / 489.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.1225, allocations: 79.28 kB / 489.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3e-05/0.1226, allocations: 91.2 kB / 489.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.423e-05/0.1226, allocations: 150.6 kB / 489.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.169e-05/0.1226, allocations: 75.28 kB / 489.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.956e-05/0.1227, allocations: 162.5 kB / 490 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.622e-05/0.1228, allocations: 79.28 kB / 490 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.1228, allocations: 79.22 kB / 490.1 MB, free: 11.56 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.0001047/0.1229, allocations: 260.4 kB / 490.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.473e-05/0.123, allocations: 113 kB / 490.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.123, allocations: 108.1 kB / 490.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.712e-05/0.1231, allocations: 184.2 kB / 490.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.616e-05/0.1231, allocations: 180.3 kB / 490.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.116e-05/0.1232, allocations: 180.2 kB / 491.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.1234, allocations: 397.2 kB / 491.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/0.1234, allocations: 112.9 kB / 491.6 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.264e-05/0.1235, allocations: 109 kB / 491.7 MB, free: 9.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-05/0.1235, allocations: 176.3 kB / 491.9 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.1236, allocations: 184.2 kB / 492.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.214e-05/0.1236, allocations: 180.3 kB / 492.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-05/0.1237, allocations: 180.2 kB / 492.4 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.1238, allocations: 303.8 kB / 492.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.151e-05/0.1239, allocations: 190 kB / 492.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.271e-05/0.1239, allocations: 180.3 kB / 493.1 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.818e-05/0.124, allocations: 104.9 kB / 493.2 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/0.1241, allocations: 184.3 kB / 493.4 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.1241, allocations: 117 kB / 493.5 MB, free: 7.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.738e-05/0.1241, allocations: 75.28 kB / 493.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1241, allocations: 0 / 493.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004525/0.1246, allocations: 124 kB / 493.7 MB, free: 7.773 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.0007373/0.1253, allocations: 430.3 kB / 494.1 MB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.376e-05/0.1254, allocations: 8 kB / 494.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.1254, allocations: 0 / 494.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.252e-06/0.1254, allocations: 0 / 494.1 MB, free: 7.344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.1257, allocations: 466 kB / 494.6 MB, free: 6.887 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001343/0.1259, allocations: 152.3 kB / 494.7 MB, free: 6.711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.1261, allocations: 0.669 MB / 495.4 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.041e-06/0.1261, allocations: 0 / 495.4 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.798e-06/0.1261, allocations: 7.438 kB / 495.4 MB, free: 6.012 MB / 366.1 MB Notification: Performance of SimCode: time 7.875e-06/0.1261, allocations: 0 / 495.4 MB, free: 6.012 MB / 366.1 MB Notification: Performance of Templates: time 0.006584/0.1327, allocations: 3.172 MB / 498.6 MB, free: 2.84 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 gbode -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