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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001815/0.001815, allocations: 107.1 kB / 20.44 MB, free: 1.328 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.002227/0.002227, allocations: 202 kB / 23.72 MB, free: 4.5 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.425/1.425, allocations: 230.5 MB / 257.4 MB, free: 7.711 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2361/0.2361, allocations: 46.95 MB / 360.8 MB, free: 3.902 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003609/0.003609, allocations: 79.88 kB / 0.4961 GB, free: 7.555 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3824, allocations: 66.08 MB / 0.5607 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001715/0.3841, allocations: 497 kB / 0.5612 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003445/0.3875, allocations: 2.167 MB / 0.5633 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.558e-06/0.3875, allocations: 0 / 0.5633 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.356e-06/0.3875, allocations: 3.938 kB / 0.5633 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.072e-06/0.3875, allocations: 0 / 0.5633 GB, free: 1.336 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.002157/0.3897, allocations: 0.6363 MB / 0.5639 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.309e-05/0.3897, allocations: 4 kB / 0.5639 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.515e-05/0.3898, allocations: 0 / 0.5639 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001409/0.3899, allocations: 19.92 kB / 0.5639 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.339e-05/0.3899, allocations: 11.98 kB / 0.5639 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.68e-06/0.3899, allocations: 0 / 0.5639 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001075/0.391, allocations: 0.6398 MB / 0.5646 GB, free: 28 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.716e-06/0.391, allocations: 3.984 kB / 0.5646 GB, free: 24 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.3911, allocations: 4 kB / 0.5646 GB, free: 20 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006233/0.3917, allocations: 439.2 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3917, allocations: 0 / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3917, allocations: 0 / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.3917, allocations: 4 kB / 0.565 GB, free: 15.59 MB / 414.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.0003977/0.3921, allocations: 355.3 kB / 0.5653 GB, free: 15.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.3921, allocations: 16.02 kB / 0.5653 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.433e-05/0.3922, allocations: 110 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.3923, allocations: 80.22 kB / 0.5655 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3924, allocations: 177.8 kB / 0.5657 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.285e-05/0.3925, allocations: 150.9 kB / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.882e-05/0.3925, allocations: 154.5 kB / 0.566 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.046e-05/0.3926, allocations: 105 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.408e-05/0.3927, allocations: 75.28 kB / 0.5662 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-05/0.3927, allocations: 154.5 kB / 0.5663 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.3928, allocations: 154.6 kB / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.393, allocations: 158.5 kB / 0.5666 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004092/0.3934, allocations: 417 kB / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.877e-05/0.3935, allocations: 173.1 kB / 0.5672 GB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.04e-05/0.3936, allocations: 84.14 kB / 0.5672 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.554e-05/0.3936, allocations: 75.28 kB / 0.5673 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.3937, allocations: 139.5 kB / 0.5674 GB, free: 12.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.3937, allocations: 0 / 0.5674 GB, free: 12.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.833e-05/0.3938, allocations: 25.7 kB / 0.5675 GB, free: 12.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.805e-05/0.3939, allocations: 152.4 kB / 0.5676 GB, free: 12.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.66e-05/0.3939, allocations: 89.86 kB / 0.5677 GB, free: 12.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.394, allocations: 29.7 kB / 0.5677 GB, free: 12.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.28e-05/0.394, allocations: 88.08 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.553e-06/0.394, allocations: 0 / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.394, allocations: 17.7 kB / 0.5678 GB, free: 12.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3942, allocations: 314.8 kB / 0.5681 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.399e-06/0.3942, allocations: 0 / 0.5681 GB, free: 12.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.705e-05/0.3942, allocations: 29.7 kB / 0.5682 GB, free: 12.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.778e-05/0.3942, allocations: 75.28 kB / 0.5682 GB, free: 12.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-05/0.3943, allocations: 75.28 kB / 0.5683 GB, free: 11.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.804e-05/0.3944, allocations: 41.64 kB / 0.5683 GB, free: 11.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.335e-05/0.3944, allocations: 79.28 kB / 0.5684 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/0.3944, allocations: 75.28 kB / 0.5685 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.966e-05/0.3945, allocations: 166.5 kB / 0.5686 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.638e-05/0.3946, allocations: 79.28 kB / 0.5687 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.787e-05/0.3946, allocations: 150.6 kB / 0.5689 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.996e-05/0.3947, allocations: 87.22 kB / 0.5689 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.3948, allocations: 79.33 kB / 0.569 GB, free: 11.21 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.0001545/0.3949, allocations: 261.7 kB / 0.5693 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/0.395, allocations: 108.9 kB / 0.5694 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7e-05/0.3951, allocations: 119.7 kB / 0.5695 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-05/0.3951, allocations: 176.3 kB / 0.5697 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.783e-05/0.3952, allocations: 184.2 kB / 0.5698 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.231e-05/0.3953, allocations: 184.3 kB / 0.57 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002485/0.3956, allocations: 376.2 kB / 0.5704 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.493e-05/0.3956, allocations: 105 kB / 0.5705 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.118e-05/0.3957, allocations: 104.9 kB / 0.5706 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.832e-05/0.3957, allocations: 180.3 kB / 0.5707 GB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.251e-05/0.3958, allocations: 180.3 kB / 0.5709 GB, free: 9.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.54e-05/0.3959, allocations: 188.2 kB / 0.5711 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.817e-05/0.396, allocations: 176.3 kB / 0.5713 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001696/0.3961, allocations: 315.6 kB / 0.5716 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.176e-05/0.3962, allocations: 109 kB / 0.5717 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.3963, allocations: 184.2 kB / 0.5718 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.277e-05/0.3964, allocations: 105 kB / 0.5719 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.615e-05/0.3965, allocations: 184.2 kB / 0.5721 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.643e-05/0.3965, allocations: 105 kB / 0.5722 GB, free: 7.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.386e-05/0.3966, allocations: 75.28 kB / 0.5723 GB, free: 7.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3966, allocations: 3.938 kB / 0.5723 GB, free: 7.656 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.3971, allocations: 139.6 kB / 0.5724 GB, free: 7.52 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.001206/0.3983, allocations: 1.048 MB / 0.5735 GB, free: 6.449 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.388e-05/0.3983, allocations: 4 kB / 0.5735 GB, free: 6.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3983, allocations: 0 / 0.5735 GB, free: 6.445 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-06/0.3983, allocations: 0 / 0.5735 GB, free: 6.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.3987, allocations: 459.7 kB / 0.5739 GB, free: 5.992 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004237/0.3991, allocations: 238.1 kB / 0.5741 GB, free: 5.719 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.434e-05/0.3992, allocations: 55.36 kB / 0.5742 GB, free: 5.645 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.285e-06/0.3992, allocations: 4 kB / 0.5742 GB, free: 5.641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.412e-05/0.3992, allocations: 11.38 kB / 0.5742 GB, free: 5.629 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3992, allocations: 0 / 0.5742 GB, free: 5.629 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03064/0.4299, allocations: 4.71 MB / 0.5788 GB, free: 1.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.83, allocations: 3.438 kB / 0.5788 GB, free: 1.016 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.844625537283719]