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.001203/0.001203, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001316/0.001316, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.371/1.371, allocations: 230.5 MB / 258.2 MB, free: 8 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.2169/0.2169, allocations: 46.94 MB / 361.6 MB, free: 4.195 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 83.86 kB / 0.497 GB, free: 7.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2883, allocations: 66.09 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001481/0.2898, allocations: 489.1 kB / 0.562 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003382/0.2932, allocations: 2.327 MB / 0.5642 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.248e-06/0.2932, allocations: 0 / 0.5642 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.246e-06/0.2932, allocations: 0 / 0.5642 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.72e-07/0.2932, allocations: 0 / 0.5642 GB, free: 1.508 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.002041/0.2952, allocations: 0.6285 MB / 0.5648 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.853e-05/0.2952, allocations: 11.97 kB / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.569e-05/0.2953, allocations: 0 / 0.5649 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.2954, allocations: 12 kB / 0.5649 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.575e-05/0.2954, allocations: 7.984 kB / 0.5649 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.827e-06/0.2954, allocations: 7.938 kB / 0.5649 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001115/0.2965, allocations: 0.6672 MB / 0.5655 GB, free: 180 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.2966, allocations: 3.984 kB / 0.5655 GB, free: 176 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.055e-05/0.2966, allocations: 8 kB / 0.5655 GB, free: 168 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000625/0.2972, allocations: 447 kB / 0.566 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2972, allocations: 3.938 kB / 0.566 GB, free: 15.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2972, allocations: 0 / 0.566 GB, free: 15.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.2972, allocations: 0 / 0.566 GB, free: 15.72 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.0004756/0.2977, allocations: 355.3 kB / 0.5663 GB, free: 15.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.2977, allocations: 12.03 kB / 0.5663 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.352e-05/0.2978, allocations: 75.47 kB / 0.5664 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.307e-05/0.2978, allocations: 110 kB / 0.5665 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.465e-05/0.2979, allocations: 76.22 kB / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.298, allocations: 181.8 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-05/0.2981, allocations: 158.6 kB / 0.5669 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.73e-05/0.2982, allocations: 150.6 kB / 0.567 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.184e-05/0.2982, allocations: 105 kB / 0.5671 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.972e-05/0.2983, allocations: 79.28 kB / 0.5672 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.484e-05/0.2983, allocations: 150.6 kB / 0.5674 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-05/0.2984, allocations: 158.5 kB / 0.5675 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.421e-05/0.2985, allocations: 154.6 kB / 0.5677 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002818/0.2988, allocations: 421 kB / 0.5681 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.859e-05/0.2989, allocations: 173.1 kB / 0.5682 GB, free: 13.28 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.88e-05/0.2989, allocations: 80.14 kB / 0.5683 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.2989, allocations: 83.22 kB / 0.5684 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.603e-05/0.299, allocations: 131.5 kB / 0.5685 GB, free: 12.97 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.91e-07/0.299, allocations: 0 / 0.5685 GB, free: 12.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.9e-05/0.2991, allocations: 33.64 kB / 0.5685 GB, free: 12.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.2992, allocations: 152.4 kB / 0.5687 GB, free: 12.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.048e-05/0.2992, allocations: 97.86 kB / 0.5688 GB, free: 12.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.2992, allocations: 25.7 kB / 0.5688 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.2993, allocations: 80.14 kB / 0.5689 GB, free: 12.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.693e-06/0.2993, allocations: 0 / 0.5689 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.2993, allocations: 17.7 kB / 0.5689 GB, free: 12.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2994, allocations: 314.8 kB / 0.5692 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.757e-06/0.2995, allocations: 0 / 0.5692 GB, free: 12.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.103e-05/0.2995, allocations: 4 kB / 0.5692 GB, free: 12.2 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.333e-05/0.2995, allocations: 75.28 kB / 0.5693 GB, free: 12.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.352e-05/0.2995, allocations: 75.28 kB / 0.5693 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.701e-05/0.2996, allocations: 37.7 kB / 0.5694 GB, free: 12.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.679e-05/0.2996, allocations: 83.22 kB / 0.5695 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.503e-05/0.2997, allocations: 79.27 kB / 0.5695 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.7e-05/0.2998, allocations: 154.6 kB / 0.5697 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.486e-05/0.2998, allocations: 87.22 kB / 0.5698 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.318e-05/0.2999, allocations: 150.6 kB / 0.5699 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.015e-05/0.2999, allocations: 83.27 kB / 0.57 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.31e-05/0.3, allocations: 83.22 kB / 0.5701 GB, free: 11.3 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.0001599/0.3001, allocations: 265.7 kB / 0.5703 GB, free: 11.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.772e-05/0.3002, allocations: 109 kB / 0.5704 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.3003, allocations: 115.7 kB / 0.5705 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.756e-05/0.3003, allocations: 176.3 kB / 0.5707 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.232e-05/0.3004, allocations: 180.2 kB / 0.5709 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.776e-05/0.3005, allocations: 180.3 kB / 0.571 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3007, allocations: 380.2 kB / 0.5714 GB, free: 9.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.878e-05/0.3008, allocations: 104.9 kB / 0.5715 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.372e-05/0.3008, allocations: 105 kB / 0.5716 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.639e-05/0.3009, allocations: 180.2 kB / 0.5718 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.057e-05/0.301, allocations: 176.3 kB / 0.572 GB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.483e-05/0.3011, allocations: 180.2 kB / 0.5721 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-05/0.3011, allocations: 188.2 kB / 0.5723 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.3013, allocations: 311.6 kB / 0.5726 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.3014, allocations: 109 kB / 0.5727 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.034e-05/0.3015, allocations: 176.3 kB / 0.5729 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.495e-05/0.3015, allocations: 116.9 kB / 0.573 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.141e-05/0.3016, allocations: 180.3 kB / 0.5732 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.503e-05/0.3017, allocations: 104.9 kB / 0.5733 GB, free: 7.832 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.86e-05/0.3017, allocations: 75.28 kB / 0.5733 GB, free: 7.758 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3017, allocations: 4 kB / 0.5733 GB, free: 7.754 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005576/0.3023, allocations: 135.6 kB / 0.5735 GB, free: 7.621 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.00125/0.3035, allocations: 1.04 MB / 0.5745 GB, free: 6.555 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.951e-05/0.3036, allocations: 7.875 kB / 0.5745 GB, free: 6.547 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3036, allocations: 8 kB / 0.5745 GB, free: 6.539 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.262e-06/0.3036, allocations: 0 / 0.5745 GB, free: 6.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.304, allocations: 457.9 kB / 0.5749 GB, free: 6.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004591/0.3045, allocations: 246.1 kB / 0.5752 GB, free: 5.809 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.3048, allocations: 0.669 MB / 0.5758 GB, free: 5.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.672e-06/0.3048, allocations: 0 / 0.5758 GB, free: 5.113 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.663e-05/0.3048, allocations: 15.44 kB / 0.5758 GB, free: 5.098 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3048, allocations: 0 / 0.5758 GB, free: 5.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02394/0.3287, allocations: 4.327 MB / 0.5801 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.97, allocations: 9.969 kB / 0.5801 GB, free: 0.8789 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.660866057965904]