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.001366/0.001366, allocations: 111.9 kB / 20.49 MB, free: 1.27 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.001394/0.001394, allocations: 220.8 kB / 23.78 MB, free: 4.434 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.488/1.488, allocations: 230.5 MB / 257.4 MB, free: 7.73 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.2511/0.2511, allocations: 46.96 MB / 360.9 MB, free: 3.879 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.002332/0.002332, allocations: 79.88 kB / 0.4962 GB, free: 7.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3684/0.3708, allocations: 66.08 MB / 0.5607 GB, free: 4.004 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001699/0.3725, allocations: 489.1 kB / 0.5612 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003636/0.3761, allocations: 2.175 MB / 0.5633 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.3e-06/0.3761, allocations: 0 / 0.5633 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.937e-06/0.3761, allocations: 0 / 0.5633 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.343e-06/0.3761, 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.002198/0.3783, allocations: 0.6392 MB / 0.564 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.654e-05/0.3784, allocations: 7.984 kB / 0.564 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.405e-05/0.3784, allocations: 4 kB / 0.564 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.3785, allocations: 15.94 kB / 0.564 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.816e-05/0.3786, allocations: 7.984 kB / 0.564 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.059e-06/0.3786, allocations: 0 / 0.564 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001164/0.3798, allocations: 0.6359 MB / 0.5646 GB, free: 32 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.3798, allocations: 3.984 kB / 0.5646 GB, free: 28 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.763e-05/0.3798, allocations: 7.984 kB / 0.5646 GB, free: 20 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006853/0.3805, allocations: 443.1 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3805, allocations: 4 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3805, allocations: 0 / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.3805, allocations: 0 / 0.565 GB, free: 15.58 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.0004334/0.3809, allocations: 355.3 kB / 0.5654 GB, free: 15.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.381, allocations: 11.97 kB / 0.5654 GB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.756e-05/0.381, allocations: 114 kB / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.917e-05/0.3811, allocations: 76.22 kB / 0.5656 GB, free: 14.99 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.3812, allocations: 177.8 kB / 0.5657 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.719e-05/0.3813, allocations: 150.9 kB / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.532e-05/0.3814, allocations: 158.5 kB / 0.566 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.899e-05/0.3814, allocations: 108.9 kB / 0.5661 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.3815, allocations: 75.28 kB / 0.5662 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.3815, allocations: 150.6 kB / 0.5664 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.758e-05/0.3816, allocations: 158.6 kB / 0.5665 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.471e-05/0.3817, allocations: 150.6 kB / 0.5667 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002918/0.382, allocations: 413 kB / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.3821, allocations: 181 kB / 0.5672 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.159e-05/0.3821, allocations: 80.14 kB / 0.5673 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.19e-05/0.3822, allocations: 75.28 kB / 0.5674 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.508e-05/0.3822, allocations: 135.5 kB / 0.5675 GB, free: 12.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 2.444e-06/0.3822, allocations: 3.984 kB / 0.5675 GB, free: 12.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.82e-05/0.3823, allocations: 29.69 kB / 0.5675 GB, free: 12.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.953e-05/0.3824, allocations: 156.4 kB / 0.5677 GB, free: 12.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.87e-05/0.3825, allocations: 89.86 kB / 0.5678 GB, free: 12.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.3825, allocations: 25.7 kB / 0.5678 GB, free: 12.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.3825, allocations: 80.14 kB / 0.5679 GB, free: 12.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-06/0.3825, allocations: 4 kB / 0.5679 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.3826, allocations: 21.66 kB / 0.5679 GB, free: 12.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3827, allocations: 314.8 kB / 0.5682 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.452e-06/0.3827, allocations: 8 kB / 0.5682 GB, free: 12.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.12e-05/0.3828, allocations: 25.7 kB / 0.5682 GB, free: 12.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.582e-05/0.3828, allocations: 79.27 kB / 0.5683 GB, free: 12.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-05/0.3828, allocations: 75.28 kB / 0.5684 GB, free: 11.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.947e-05/0.3829, allocations: 37.7 kB / 0.5684 GB, free: 11.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.59e-05/0.3829, allocations: 79.28 kB / 0.5685 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-05/0.383, allocations: 83.22 kB / 0.5686 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.314e-05/0.383, allocations: 150.6 kB / 0.5687 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.07e-05/0.3831, allocations: 79.31 kB / 0.5688 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.881e-05/0.3831, allocations: 158.5 kB / 0.5689 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.75e-05/0.3832, allocations: 79.28 kB / 0.569 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.871e-05/0.3833, allocations: 87.25 kB / 0.5691 GB, free: 11.2 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.0001459/0.3834, allocations: 260.4 kB / 0.5693 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.355e-05/0.3835, allocations: 108.9 kB / 0.5694 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.425e-05/0.3835, allocations: 107.8 kB / 0.5695 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-05/0.3836, allocations: 184.2 kB / 0.5697 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-05/0.3837, allocations: 184.2 kB / 0.5699 GB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.01e-05/0.3838, allocations: 184.1 kB / 0.5701 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002415/0.3841, allocations: 376.2 kB / 0.5704 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.837e-05/0.3841, allocations: 101 kB / 0.5705 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/0.3841, allocations: 108.9 kB / 0.5706 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.708e-05/0.3842, allocations: 184.3 kB / 0.5708 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.845e-05/0.3843, allocations: 180.2 kB / 0.571 GB, free: 9.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.543e-05/0.3844, allocations: 176.3 kB / 0.5711 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.226e-05/0.3845, allocations: 184.2 kB / 0.5713 GB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001792/0.3847, allocations: 307.8 kB / 0.5716 GB, free: 8.445 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/0.3847, allocations: 108.9 kB / 0.5717 GB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.3848, allocations: 180.3 kB / 0.5719 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.262e-05/0.3849, allocations: 108.9 kB / 0.572 GB, free: 8.035 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.385, allocations: 188.2 kB / 0.5722 GB, free: 7.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.025e-05/0.3851, allocations: 101 kB / 0.5723 GB, free: 7.738 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.3851, allocations: 75.28 kB / 0.5723 GB, free: 7.664 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3851, allocations: 0 / 0.5723 GB, free: 7.664 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000546/0.3857, allocations: 139.6 kB / 0.5725 GB, free: 7.527 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.001218/0.3869, allocations: 1.053 MB / 0.5735 GB, free: 6.449 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.108e-05/0.3869, allocations: 4 kB / 0.5735 GB, free: 6.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.3869, allocations: 4 kB / 0.5735 GB, free: 6.441 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.3869, allocations: 0 / 0.5735 GB, free: 6.441 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.3873, allocations: 462.3 kB / 0.574 GB, free: 5.988 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004417/0.3877, allocations: 250 kB / 0.5742 GB, free: 5.703 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.799e-05/0.3878, allocations: 51.36 kB / 0.5742 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.713e-06/0.3878, allocations: 0 / 0.5742 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.219e-05/0.3878, allocations: 11.44 kB / 0.5743 GB, free: 5.621 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3878, allocations: 0 / 0.5743 GB, free: 5.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03043/0.4182, allocations: 4.794 MB / 0.5789 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.69, allocations: 0 / 0.5789 GB, free: 0.9258 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.csv","/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.682278015185148]