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.001258/0.001258, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001363/0.001363, allocations: 213.5 kB / 24.52 MB, free: 3.918 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.372/1.372, allocations: 230.5 MB / 258.2 MB, free: 7.742 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.2462/0.2462, allocations: 46.95 MB / 361.6 MB, free: 3.898 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.002347/0.002347, allocations: 83.81 kB / 0.4969 GB, free: 7.543 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3011, allocations: 66.07 MB / 0.5614 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001573/0.3027, allocations: 499.4 kB / 0.5619 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.3059, allocations: 2.164 MB / 0.564 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.438e-06/0.3059, allocations: 0 / 0.564 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.294e-06/0.3059, allocations: 0 / 0.564 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.112e-06/0.3059, allocations: 4 kB / 0.564 GB, free: 1.34 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.002033/0.3079, allocations: 0.6286 MB / 0.5646 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.544e-05/0.308, allocations: 7.984 kB / 0.5646 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.532e-05/0.308, allocations: 4 kB / 0.5646 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.3081, allocations: 15.98 kB / 0.5647 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.479e-05/0.3082, allocations: 7.984 kB / 0.5647 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.11e-06/0.3082, allocations: 0 / 0.5647 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.3092, allocations: 0.671 MB / 0.5653 GB, free: 8 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-06/0.3092, allocations: 3.938 kB / 0.5653 GB, free: 4 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.85e-05/0.3092, allocations: 4 kB / 0.5653 GB, free: 0 / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006638/0.3099, allocations: 443.1 kB / 0.5657 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3099, allocations: 0 / 0.5657 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3099, allocations: 4 kB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.3099, allocations: 0 / 0.5658 GB, free: 15.56 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.0004471/0.3104, allocations: 355.3 kB / 0.5661 GB, free: 15.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3104, allocations: 12.03 kB / 0.5661 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.423e-05/0.3105, allocations: 75.47 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.753e-05/0.3105, allocations: 110 kB / 0.5663 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.3106, allocations: 76.22 kB / 0.5664 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.3107, allocations: 181.8 kB / 0.5665 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.397e-05/0.3108, allocations: 158.7 kB / 0.5667 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.254e-05/0.3108, allocations: 154.6 kB / 0.5668 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.246e-05/0.3109, allocations: 104.9 kB / 0.5669 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.376e-05/0.3109, allocations: 79.22 kB / 0.567 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.3111, allocations: 150.6 kB / 0.5671 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.525e-05/0.3111, allocations: 154.6 kB / 0.5673 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.3113, allocations: 154.6 kB / 0.5674 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.3116, allocations: 417 kB / 0.5678 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.3117, allocations: 173 kB / 0.568 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.212e-05/0.3117, allocations: 80.14 kB / 0.5681 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.811e-05/0.3118, allocations: 75.28 kB / 0.5681 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.637e-05/0.3119, allocations: 139.5 kB / 0.5683 GB, free: 12.81 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 2.835e-06/0.3119, allocations: 3.984 kB / 0.5683 GB, free: 12.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.884e-05/0.3119, allocations: 25.7 kB / 0.5683 GB, free: 12.78 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.312, allocations: 160.4 kB / 0.5685 GB, free: 12.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.45e-05/0.3121, allocations: 89.86 kB / 0.5685 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.3121, allocations: 29.7 kB / 0.5686 GB, free: 12.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.3122, allocations: 80.14 kB / 0.5687 GB, free: 12.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.723e-06/0.3122, allocations: 0 / 0.5687 GB, free: 12.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.3122, allocations: 13.72 kB / 0.5687 GB, free: 12.37 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3123, allocations: 318.8 kB / 0.569 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.13e-06/0.3123, allocations: 4 kB / 0.569 GB, free: 12.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.436e-05/0.3124, allocations: 25.7 kB / 0.569 GB, free: 12.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.371e-05/0.3124, allocations: 75.28 kB / 0.5691 GB, free: 11.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-05/0.3125, allocations: 75.28 kB / 0.5691 GB, free: 11.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.689e-05/0.3125, allocations: 37.7 kB / 0.5692 GB, free: 11.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.3126, allocations: 83.25 kB / 0.5693 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.143e-05/0.3126, allocations: 87.22 kB / 0.5693 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.421e-05/0.3127, allocations: 154.6 kB / 0.5695 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.569e-05/0.3127, allocations: 75.28 kB / 0.5696 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.917e-05/0.3128, allocations: 162.5 kB / 0.5697 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.479e-05/0.3129, allocations: 75.33 kB / 0.5698 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.3129, allocations: 87.22 kB / 0.5699 GB, free: 11.11 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.0002023/0.3131, allocations: 265.7 kB / 0.5701 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.419e-05/0.3132, allocations: 109 kB / 0.5702 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.632e-05/0.3132, allocations: 107.8 kB / 0.5703 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.352e-05/0.3133, allocations: 188.2 kB / 0.5705 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.421e-05/0.3134, allocations: 180.3 kB / 0.5707 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.772e-05/0.3135, allocations: 180.2 kB / 0.5709 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.3137, allocations: 376.2 kB / 0.5712 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001024/0.3138, allocations: 105 kB / 0.5713 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.662e-05/0.3139, allocations: 104.9 kB / 0.5714 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.462e-05/0.314, allocations: 180.3 kB / 0.5716 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.545e-05/0.3141, allocations: 180.2 kB / 0.5718 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.92e-05/0.3141, allocations: 176.3 kB / 0.5719 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.464e-05/0.3142, allocations: 196.1 kB / 0.5721 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.3144, allocations: 299.8 kB / 0.5724 GB, free: 8.352 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.237e-05/0.3144, allocations: 112.9 kB / 0.5725 GB, free: 8.234 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.313e-05/0.3145, allocations: 188.2 kB / 0.5727 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.97e-05/0.3146, allocations: 101 kB / 0.5728 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.322e-05/0.3147, allocations: 184.2 kB / 0.573 GB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.3147, allocations: 101 kB / 0.5731 GB, free: 7.645 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.41e-05/0.3148, allocations: 75.28 kB / 0.5731 GB, free: 7.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3148, allocations: 0 / 0.5731 GB, free: 7.57 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005264/0.3153, allocations: 143.6 kB / 0.5733 GB, free: 7.43 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.001322/0.3166, allocations: 1.053 MB / 0.5743 GB, free: 6.355 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 6.214e-05/0.3167, allocations: 4 kB / 0.5743 GB, free: 6.352 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3167, allocations: 0 / 0.5743 GB, free: 6.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.383e-06/0.3167, allocations: 0 / 0.5743 GB, free: 6.352 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.3171, allocations: 459.6 kB / 0.5747 GB, free: 5.898 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000481/0.3176, allocations: 242.1 kB / 0.575 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.619e-05/0.3176, allocations: 51.36 kB / 0.575 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.432e-06/0.3177, allocations: 0 / 0.575 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.803e-05/0.3177, allocations: 19.38 kB / 0.575 GB, free: 5.531 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3177, allocations: 0 / 0.575 GB, free: 5.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.3429, allocations: 4.372 MB / 0.5793 GB, free: 1.273 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.12, allocations: 8 kB / 0.5793 GB, free: 1.266 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.841427438892424]