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.001978/0.001978, allocations: 116.1 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4268/0.4282, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001927/0.4302, allocations: 0.4905 MB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003594/0.4338, allocations: 2.274 MB / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.222e-06/0.4338, allocations: 3.938 kB / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.977e-06/0.4338, allocations: 0 / 0.5337 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.152e-06/0.4339, allocations: 0 / 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.002175/0.436, allocations: 0.6168 MB / 0.5343 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.832e-05/0.4361, allocations: 4.125 kB / 0.5343 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.537e-05/0.4361, allocations: 5.359 kB / 0.5343 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001437/0.4363, allocations: 20.17 kB / 0.5343 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.646e-05/0.4363, allocations: 4.125 kB / 0.5343 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.739e-06/0.4363, allocations: 0 / 0.5343 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00106/0.4374, allocations: 0.673 MB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-06/0.4374, allocations: 0 / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.466e-05/0.4374, allocations: 2.219 kB / 0.535 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006112/0.438, allocations: 436.4 kB / 0.5354 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.4381, allocations: 0 / 0.5354 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.056e-06/0.4381, allocations: 1.312 kB / 0.5354 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.4381, 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.0004321/0.4385, allocations: 423.2 kB / 0.5358 GB, free: 10.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.4386, allocations: 10.22 kB / 0.5358 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.608e-05/0.4387, allocations: 81.44 kB / 0.5359 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001106/0.4388, allocations: 239.7 kB / 0.5361 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.164e-05/0.4388, allocations: 150.9 kB / 0.5362 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000127/0.439, allocations: 155.7 kB / 0.5364 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.405e-05/0.439, allocations: 101 kB / 0.5365 GB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.854e-05/0.4391, allocations: 76.31 kB / 0.5366 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.882e-05/0.4391, allocations: 155.7 kB / 0.5367 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.663e-05/0.4392, allocations: 154.5 kB / 0.5369 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.712e-05/0.4392, allocations: 151.5 kB / 0.537 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002556/0.4395, allocations: 447.2 kB / 0.5374 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.953e-05/0.4396, allocations: 174.3 kB / 0.5376 GB, free: 8.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.078e-05/0.4396, allocations: 84.08 kB / 0.5377 GB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.4397, allocations: 76.38 kB / 0.5378 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.547e-05/0.4397, allocations: 144.4 kB / 0.5379 GB, free: 7.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.4397, allocations: 0 / 0.5379 GB, free: 7.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.79e-05/0.4398, allocations: 28.02 kB / 0.5379 GB, free: 7.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.353e-05/0.4399, allocations: 156.4 kB / 0.5381 GB, free: 7.582 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.888e-05/0.44, allocations: 91.14 kB / 0.5382 GB, free: 7.484 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.44, allocations: 25.7 kB / 0.5382 GB, free: 7.453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/0.44, allocations: 85.27 kB / 0.5383 GB, free: 7.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-06/0.44, allocations: 0 / 0.5383 GB, free: 7.367 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.402e-05/0.44, allocations: 13.84 kB / 0.5383 GB, free: 7.352 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.4401, allocations: 312 kB / 0.5386 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-06/0.4401, allocations: 0 / 0.5386 GB, free: 7.039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.095e-05/0.4402, allocations: 10.33 kB / 0.5386 GB, free: 7.031 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.023e-05/0.4402, allocations: 75.28 kB / 0.5387 GB, free: 6.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.452e-05/0.4403, allocations: 83.22 kB / 0.5387 GB, free: 6.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.324e-05/0.4403, allocations: 37.42 kB / 0.5388 GB, free: 6.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.4404, allocations: 79.97 kB / 0.5388 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.481e-05/0.4404, allocations: 76.38 kB / 0.5389 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.93e-05/0.4404, allocations: 155.5 kB / 0.5391 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.302e-05/0.4405, allocations: 80.62 kB / 0.5391 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.396e-05/0.4405, allocations: 158.5 kB / 0.5393 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.715e-05/0.4406, allocations: 80.53 kB / 0.5394 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.077e-05/0.4406, allocations: 76.66 kB / 0.5394 GB, free: 6.148 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.0001118/0.4408, allocations: 266.6 kB / 0.5397 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.061e-05/0.4408, allocations: 111.3 kB / 0.5398 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.631e-05/0.4409, allocations: 111.9 kB / 0.5399 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.713e-05/0.441, allocations: 185.4 kB / 0.5401 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.608e-05/0.441, allocations: 177.7 kB / 0.5403 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.618e-05/0.4411, allocations: 181.3 kB / 0.5404 GB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002058/0.4413, allocations: 406.5 kB / 0.5408 GB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.209e-05/0.4414, allocations: 114.4 kB / 0.5409 GB, free: 4.531 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.484e-05/0.4414, allocations: 104.9 kB / 0.541 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.686e-05/0.4415, allocations: 182.6 kB / 0.5412 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.423e-05/0.4416, allocations: 176.3 kB / 0.5414 GB, free: 4.059 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.359e-05/0.4416, allocations: 185.9 kB / 0.5415 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.319e-05/0.4417, allocations: 178.4 kB / 0.5417 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/0.4419, allocations: 307.5 kB / 0.542 GB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.4419, allocations: 186 kB / 0.5422 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.692e-05/0.442, allocations: 185.8 kB / 0.5424 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.939e-05/0.4421, allocations: 103 kB / 0.5425 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.968e-05/0.4422, allocations: 185.2 kB / 0.5426 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.4422, allocations: 102.5 kB / 0.5427 GB, free: 2.578 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.281e-05/0.4422, allocations: 75.28 kB / 0.5428 GB, free: 2.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4422, allocations: 3.938 kB / 0.5428 GB, free: 2.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005446/0.4428, allocations: 136.5 kB / 0.5429 GB, free: 2.465 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.0009071/0.4437, allocations: 419.2 kB / 0.5433 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.96e-05/0.4438, allocations: 5.062 kB / 0.5433 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4438, allocations: 1.125 kB / 0.5433 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.393e-06/0.4438, allocations: 0 / 0.5433 GB, free: 2.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.4442, allocations: 466.9 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.0001932/0.4444, allocations: 149.3 kB / 0.5439 GB, free: 1.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.4446, allocations: 0.67 MB / 0.5446 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.107e-06/0.4447, allocations: 0 / 0.5446 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.349e-05/0.4447, allocations: 9.656 kB / 0.5446 GB, free: 0.875 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4447, allocations: 0 / 0.5446 GB, free: 0.875 MB / 398.1 MB Notification: Performance of Templates: time 0.007867/0.4526, allocations: 3.168 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