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.001315/0.001315, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001449/0.001449, allocations: 207.1 kB / 23.73 MB, free: 4.414 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.437/1.437, allocations: 230.5 MB / 257.4 MB, free: 7.746 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.2355/0.2355, 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.002464/0.002464, allocations: 83.86 kB / 0.4961 GB, free: 7.547 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3643/0.3668, allocations: 66.08 MB / 0.5607 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001586/0.3684, allocations: 491.4 kB / 0.5611 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003665/0.372, allocations: 2.171 MB / 0.5633 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.907e-06/0.372, allocations: 3.938 kB / 0.5633 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.762e-06/0.372, allocations: 0 / 0.5633 GB, free: 1.352 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.422e-06/0.372, allocations: 0 / 0.5633 GB, free: 1.352 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.3742, allocations: 0.6245 MB / 0.5639 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.156e-05/0.3743, allocations: 11.92 kB / 0.5639 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.223e-05/0.3743, allocations: 7.938 kB / 0.5639 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.3745, allocations: 15.98 kB / 0.5639 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.948e-05/0.3745, allocations: 4 kB / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-06/0.3745, allocations: 0 / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001074/0.3756, allocations: 0.6509 MB / 0.5646 GB, free: 44 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-06/0.3756, allocations: 0 / 0.5646 GB, free: 44 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.523e-05/0.3756, allocations: 4 kB / 0.5646 GB, free: 40 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006478/0.3763, allocations: 439.2 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3763, allocations: 7.938 kB / 0.565 GB, free: 15.6 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3763, allocations: 0 / 0.565 GB, free: 15.6 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.3763, allocations: 0 / 0.565 GB, free: 15.6 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.0004235/0.3767, allocations: 355.3 kB / 0.5653 GB, free: 15.22 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.3768, allocations: 8.031 kB / 0.5653 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.609e-05/0.3768, allocations: 114 kB / 0.5654 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.657e-05/0.3769, allocations: 76.22 kB / 0.5655 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.377, allocations: 181.8 kB / 0.5657 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/0.3771, allocations: 154.9 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.479e-05/0.3772, allocations: 158.5 kB / 0.566 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.93e-05/0.3772, allocations: 101 kB / 0.5661 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.046e-05/0.3773, allocations: 75.28 kB / 0.5662 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.726e-05/0.3774, allocations: 158.4 kB / 0.5663 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-05/0.3774, allocations: 154.6 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.034e-05/0.3775, allocations: 150.6 kB / 0.5666 GB, free: 13.87 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003275/0.3778, allocations: 417 kB / 0.567 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.378, allocations: 177.1 kB / 0.5672 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.394e-05/0.378, allocations: 80.14 kB / 0.5672 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.378, allocations: 79.22 kB / 0.5673 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.736e-05/0.3781, allocations: 135.5 kB / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.3781, allocations: 0 / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.218e-05/0.3782, allocations: 33.69 kB / 0.5675 GB, free: 12.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.3783, allocations: 156.4 kB / 0.5676 GB, free: 12.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.156e-05/0.3784, allocations: 89.86 kB / 0.5677 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.8e-05/0.3784, allocations: 25.7 kB / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.547e-05/0.3784, allocations: 80.14 kB / 0.5678 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-06/0.3785, allocations: 4 kB / 0.5678 GB, free: 12.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.3785, allocations: 13.72 kB / 0.5678 GB, free: 12.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3786, allocations: 310.8 kB / 0.5681 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.304e-06/0.3786, allocations: 4 kB / 0.5681 GB, free: 12.16 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.763e-05/0.3787, allocations: 33.58 kB / 0.5682 GB, free: 12.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.008e-05/0.3787, allocations: 79.27 kB / 0.5682 GB, free: 12.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.43e-05/0.3788, allocations: 75.28 kB / 0.5683 GB, free: 11.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.205e-05/0.3788, allocations: 37.7 kB / 0.5683 GB, free: 11.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.972e-05/0.3789, allocations: 83.28 kB / 0.5684 GB, free: 11.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-05/0.3789, allocations: 79.28 kB / 0.5685 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001077/0.379, allocations: 154.5 kB / 0.5686 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.703e-05/0.3791, allocations: 79.31 kB / 0.5687 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.229e-05/0.3792, allocations: 158.5 kB / 0.5689 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.888e-05/0.3793, allocations: 79.27 kB / 0.5689 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.3793, allocations: 79.33 kB / 0.569 GB, free: 11.23 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.0001851/0.3795, allocations: 264.4 kB / 0.5693 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.3796, allocations: 112.9 kB / 0.5694 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.28e-05/0.3796, allocations: 107.8 kB / 0.5695 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-05/0.3797, allocations: 180.2 kB / 0.5697 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001012/0.3798, allocations: 184.2 kB / 0.5698 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.126e-05/0.3799, allocations: 176.3 kB / 0.57 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002824/0.3802, allocations: 384.2 kB / 0.5704 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.652e-05/0.3802, allocations: 105 kB / 0.5705 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.276e-05/0.3803, allocations: 108.9 kB / 0.5706 GB, free: 9.527 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.475e-05/0.3804, allocations: 180.3 kB / 0.5707 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.507e-05/0.3805, allocations: 176.3 kB / 0.5709 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.45e-05/0.3806, allocations: 188.2 kB / 0.5711 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.138e-05/0.3807, allocations: 180.3 kB / 0.5713 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.3808, allocations: 311.6 kB / 0.5716 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.3809, allocations: 112.9 kB / 0.5717 GB, free: 8.344 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.381, allocations: 180.3 kB / 0.5718 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.3811, allocations: 109 kB / 0.5719 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.869e-05/0.3812, allocations: 184.2 kB / 0.5721 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.3812, allocations: 101 kB / 0.5722 GB, free: 7.754 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.126e-05/0.3813, allocations: 75.28 kB / 0.5723 GB, free: 7.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3813, allocations: 0 / 0.5723 GB, free: 7.68 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005808/0.3819, allocations: 143.6 kB / 0.5724 GB, free: 7.539 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.001355/0.3832, allocations: 1.048 MB / 0.5734 GB, free: 6.469 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.115e-05/0.3833, allocations: 4 kB / 0.5735 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3833, allocations: 0 / 0.5735 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.754e-06/0.3833, allocations: 0 / 0.5735 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.3838, allocations: 455.7 kB / 0.5739 GB, free: 6.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005158/0.3843, allocations: 246 kB / 0.5741 GB, free: 5.734 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.794e-05/0.3844, allocations: 55.36 kB / 0.5742 GB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.223e-06/0.3844, allocations: 0 / 0.5742 GB, free: 5.66 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.75e-05/0.3844, allocations: 7.438 kB / 0.5742 GB, free: 5.652 MB / 414.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3844, allocations: 0 / 0.5742 GB, free: 5.652 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03551/0.4199, allocations: 4.709 MB / 0.5788 GB, free: 1.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.85, allocations: 14.44 kB / 0.5788 GB, free: 1.031 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.743275277782232]