Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001767/0.001767, allocations: 110.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002257/0.002257, allocations: 217.4 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 230.2 MB / 257.8 MB, free: 8.5 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.238/0.238, allocations: 46.9 MB / 361.1 MB, free: 4.617 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002338/0.002338, allocations: 75.88 kB / 0.4967 GB, free: 7.832 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4054/0.4077, allocations: 65.99 MB / 0.5612 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.002021/0.4097, allocations: 489 kB / 0.5616 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003991/0.4137, allocations: 2.331 MB / 0.5639 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.28e-06/0.4137, allocations: 0 / 0.5639 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.138e-06/0.4138, allocations: 0 / 0.5639 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.232e-06/0.4138, allocations: 3.938 kB / 0.5639 GB, free: 2.184 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-88: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:90:5-160: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:162:5-239: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:241:5-319: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.00221/0.416, allocations: 0.6294 MB / 0.5645 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.711e-05/0.416, allocations: 8 kB / 0.5645 GB, free: 1.551 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.416, allocations: 3.984 kB / 0.5645 GB, free: 1.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.4162, allocations: 11.94 kB / 0.5646 GB, free: 1.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.025e-05/0.4162, allocations: 7.984 kB / 0.5646 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.509e-06/0.4162, allocations: 0 / 0.5646 GB, free: 1.527 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.4174, allocations: 0.6749 MB / 0.5652 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-06/0.4174, allocations: 4 kB / 0.5652 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.4174, allocations: 7.984 kB / 0.5652 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.418, allocations: 439.1 kB / 0.5657 GB, free: 420 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.418, allocations: 0 / 0.5657 GB, free: 420 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.418, allocations: 0 / 0.5657 GB, free: 420 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.418, allocations: 0 / 0.5657 GB, free: 420 kB / 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.000493/0.4185, allocations: 432.4 kB / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.4186, allocations: 8.031 kB / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.974e-05/0.4186, allocations: 80.2 kB / 0.5662 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.4188, allocations: 243.7 kB / 0.5664 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.415e-05/0.4189, allocations: 158.9 kB / 0.5665 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.78e-05/0.419, allocations: 154.7 kB / 0.5667 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.683e-05/0.419, allocations: 104.9 kB / 0.5668 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.562e-05/0.4191, allocations: 75.28 kB / 0.5669 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-05/0.4191, allocations: 154.6 kB / 0.567 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-05/0.4192, allocations: 150.6 kB / 0.5671 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.579e-05/0.4193, allocations: 154.6 kB / 0.5673 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000338/0.4196, allocations: 449.9 kB / 0.5677 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.4197, allocations: 169.1 kB / 0.5679 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.804e-05/0.4198, allocations: 84.08 kB / 0.568 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.793e-05/0.4198, allocations: 75.28 kB / 0.568 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.41e-05/0.4199, allocations: 143.5 kB / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.162e-06/0.4199, allocations: 0 / 0.5682 GB, free: 13.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.003e-05/0.42, allocations: 29.64 kB / 0.5682 GB, free: 13.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/0.4201, allocations: 160.4 kB / 0.5684 GB, free: 13.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.932e-05/0.4201, allocations: 89.86 kB / 0.5684 GB, free: 13.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.4201, allocations: 29.7 kB / 0.5685 GB, free: 13.3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.446e-05/0.4202, allocations: 84.12 kB / 0.5685 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-06/0.4202, allocations: 0 / 0.5685 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.4202, allocations: 21.64 kB / 0.5686 GB, free: 13.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.4204, allocations: 310.8 kB / 0.5689 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-06/0.4204, allocations: 0 / 0.5689 GB, free: 12.88 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.552e-05/0.4204, allocations: 4 kB / 0.5689 GB, free: 12.87 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.542e-05/0.4204, allocations: 79.31 kB / 0.5689 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.014e-05/0.4204, allocations: 75.28 kB / 0.569 GB, free: 12.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.744e-05/0.4205, allocations: 33.7 kB / 0.5691 GB, free: 12.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.911e-05/0.4206, allocations: 83.22 kB / 0.5691 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.478e-05/0.4206, allocations: 79.3 kB / 0.5692 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.37e-05/0.4207, allocations: 158.5 kB / 0.5694 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.318e-05/0.4207, allocations: 83.22 kB / 0.5694 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-05/0.4208, allocations: 154.6 kB / 0.5696 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.297e-05/0.4209, allocations: 79.22 kB / 0.5697 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.4209, allocations: 75.28 kB / 0.5697 GB, free: 11.98 MB / 414.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.0001414/0.421, allocations: 260.4 kB / 0.57 GB, free: 11.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.4211, allocations: 113 kB / 0.5701 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.965e-05/0.4212, allocations: 123.8 kB / 0.5702 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.431e-05/0.4212, allocations: 176.3 kB / 0.5704 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.562e-05/0.4213, allocations: 180.2 kB / 0.5705 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.593e-05/0.4214, allocations: 176.3 kB / 0.5707 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.4217, allocations: 405.2 kB / 0.5711 GB, free: 10.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.121e-05/0.4217, allocations: 112.9 kB / 0.5712 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.361e-05/0.4218, allocations: 101 kB / 0.5713 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.874e-05/0.4218, allocations: 184.2 kB / 0.5715 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.953e-05/0.4219, allocations: 176.3 kB / 0.5716 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.616e-05/0.422, allocations: 184.2 kB / 0.5718 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.395e-05/0.4221, allocations: 180.2 kB / 0.572 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001743/0.4223, allocations: 307.8 kB / 0.5723 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.694e-05/0.4224, allocations: 190 kB / 0.5725 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.974e-05/0.4224, allocations: 176.3 kB / 0.5726 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.343e-05/0.4225, allocations: 116.9 kB / 0.5727 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.732e-05/0.4226, allocations: 180.3 kB / 0.5729 GB, free: 8.488 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/0.4227, allocations: 104.9 kB / 0.573 GB, free: 8.379 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.368e-05/0.4227, allocations: 75.28 kB / 0.5731 GB, free: 8.305 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4227, allocations: 0 / 0.5731 GB, free: 8.305 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005485/0.4232, allocations: 139.6 kB / 0.5732 GB, free: 8.168 MB / 414.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.0009333/0.4242, allocations: 437.2 kB / 0.5736 GB, free: 7.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.891e-05/0.4242, allocations: 3.938 kB / 0.5736 GB, free: 7.742 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4242, allocations: 0 / 0.5736 GB, free: 7.742 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.213e-06/0.4242, allocations: 0 / 0.5736 GB, free: 7.742 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.4246, allocations: 467.6 kB / 0.5741 GB, free: 7.281 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001857/0.4248, allocations: 156.8 kB / 0.5742 GB, free: 7.102 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.4251, allocations: 0.669 MB / 0.5749 GB, free: 6.406 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.672e-06/0.4251, allocations: 0 / 0.5749 GB, free: 6.406 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.649e-05/0.4251, allocations: 11.44 kB / 0.5749 GB, free: 6.395 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4251, allocations: 0 / 0.5749 GB, free: 6.395 MB / 414.1 MB Notification: Performance of Templates: time 0.007988/0.4331, allocations: 3.252 MB / 0.5781 GB, free: 3.145 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.377425603102893]