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.001095/0.001095, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001234/0.001235, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2704/0.2704, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4295, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001598/0.4311, allocations: 0.4936 MB / 0.5315 GB, free: 13.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003449/0.4346, allocations: 2.266 MB / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.491e-06/0.4346, allocations: 0 / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.111e-06/0.4346, allocations: 0 / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.203e-06/0.4346, allocations: 3.938 kB / 0.5337 GB, free: 11.46 MB / 398.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.002071/0.4367, allocations: 0.6194 MB / 0.5343 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.915e-05/0.4368, allocations: 5.5 kB / 0.5343 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.36e-05/0.4368, allocations: 1.375 kB / 0.5343 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.437, allocations: 14.8 kB / 0.5343 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.597e-05/0.437, allocations: 12.11 kB / 0.5343 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-06/0.437, allocations: 1.375 kB / 0.5343 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.4381, allocations: 0.6591 MB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.294e-06/0.4381, allocations: 0 / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.4381, allocations: 7.047 kB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006223/0.4388, allocations: 431.5 kB / 0.5354 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.4388, allocations: 5.094 kB / 0.5354 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4388, allocations: 4 kB / 0.5354 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.4388, allocations: 0 / 0.5354 GB, free: 10.48 MB / 398.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.0004388/0.4392, allocations: 423.6 kB / 0.5358 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.4393, allocations: 10.5 kB / 0.5358 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.341e-05/0.4393, allocations: 76.22 kB / 0.5359 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001168/0.4395, allocations: 237.1 kB / 0.5361 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.823e-05/0.4395, allocations: 154.9 kB / 0.5362 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.661e-05/0.4396, allocations: 158.7 kB / 0.5364 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.443e-05/0.4396, allocations: 102.3 kB / 0.5365 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.4397, allocations: 79.27 kB / 0.5366 GB, free: 9.211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-05/0.4397, allocations: 151.2 kB / 0.5367 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.024e-05/0.4398, allocations: 155.5 kB / 0.5369 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.608e-05/0.4399, allocations: 155.8 kB / 0.537 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003177/0.4402, allocations: 447 kB / 0.5374 GB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.4403, allocations: 170.2 kB / 0.5376 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.076e-05/0.4404, allocations: 84.08 kB / 0.5377 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.4404, allocations: 76.41 kB / 0.5377 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.008e-05/0.4405, allocations: 140.8 kB / 0.5379 GB, free: 7.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.4405, allocations: 0 / 0.5379 GB, free: 7.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 9.154e-05/0.4406, allocations: 30.81 kB / 0.5379 GB, free: 7.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.621e-05/0.4407, allocations: 157.6 kB / 0.5381 GB, free: 7.578 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.548e-05/0.4407, allocations: 89.86 kB / 0.5381 GB, free: 7.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.4408, allocations: 26.89 kB / 0.5382 GB, free: 7.449 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.4408, allocations: 80.14 kB / 0.5382 GB, free: 7.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-06/0.4408, allocations: 5.062 kB / 0.5383 GB, free: 7.363 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.4408, allocations: 17.16 kB / 0.5383 GB, free: 7.344 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.441, allocations: 312 kB / 0.5386 GB, free: 7.031 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.743e-06/0.441, allocations: 0 / 0.5386 GB, free: 7.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.795e-05/0.441, allocations: 2.312 kB / 0.5386 GB, free: 7.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.022e-05/0.4411, allocations: 75.28 kB / 0.5386 GB, free: 6.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.83e-05/0.4411, allocations: 75.28 kB / 0.5387 GB, free: 6.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.83e-05/0.4412, allocations: 45.06 kB / 0.5388 GB, free: 6.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.429e-05/0.4412, allocations: 83.97 kB / 0.5388 GB, free: 6.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.804e-05/0.4413, allocations: 80.41 kB / 0.5389 GB, free: 6.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.833e-05/0.4414, allocations: 159.8 kB / 0.5391 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.105e-05/0.4414, allocations: 76.25 kB / 0.5391 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.699e-05/0.4415, allocations: 155.6 kB / 0.5393 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.649e-05/0.4416, allocations: 80.41 kB / 0.5394 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.161e-05/0.4416, allocations: 80.47 kB / 0.5394 GB, free: 6.141 MB / 398.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.0001562/0.4418, allocations: 267 kB / 0.5397 GB, free: 5.871 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-05/0.4419, allocations: 114.2 kB / 0.5398 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.691e-05/0.4419, allocations: 109.2 kB / 0.5399 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.261e-05/0.442, allocations: 180.2 kB / 0.5401 GB, free: 5.461 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.569e-05/0.4421, allocations: 181.6 kB / 0.5403 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.292e-05/0.4421, allocations: 181.2 kB / 0.5404 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002784/0.4424, allocations: 407.5 kB / 0.5408 GB, free: 4.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.165e-05/0.4425, allocations: 104.9 kB / 0.5409 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.471e-05/0.4425, allocations: 110 kB / 0.541 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.749e-05/0.4426, allocations: 177.4 kB / 0.5412 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-05/0.4427, allocations: 181.3 kB / 0.5414 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.786e-05/0.4428, allocations: 181.4 kB / 0.5415 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.588e-05/0.4429, allocations: 177.3 kB / 0.5417 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.4431, allocations: 307.8 kB / 0.542 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.4432, allocations: 187.1 kB / 0.5422 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.662e-05/0.4433, allocations: 182.3 kB / 0.5423 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.875e-05/0.4434, allocations: 106.7 kB / 0.5425 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.4435, allocations: 185.3 kB / 0.5426 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.968e-05/0.4435, allocations: 102.1 kB / 0.5427 GB, free: 2.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.29e-05/0.4436, allocations: 75.28 kB / 0.5428 GB, free: 2.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4436, allocations: 0 / 0.5428 GB, free: 2.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006647/0.4443, allocations: 137.4 kB / 0.5429 GB, free: 2.469 MB / 398.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.001159/0.4454, allocations: 425.4 kB / 0.5433 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.337e-05/0.4455, allocations: 4 kB / 0.5433 GB, free: 2.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4455, allocations: 5.344 kB / 0.5433 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.193e-06/0.4455, allocations: 0 / 0.5433 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.446, allocations: 458.5 kB / 0.5438 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002133/0.4462, allocations: 150.1 kB / 0.5439 GB, free: 1.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.4465, allocations: 0.6729 MB / 0.5446 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.825e-06/0.4465, allocations: 5.406 kB / 0.5446 GB, free: 0.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.446e-05/0.4465, allocations: 8.688 kB / 0.5446 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4465, allocations: 0 / 0.5446 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of Templates: time 0.00829/0.4548, allocations: 3.165 MB / 0.5477 GB, free: 15.23 MB / 414.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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches