Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 109.8 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 183.1 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1932/0.1932, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 71.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3644, allocations: 60.82 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001573/0.3661, allocations: 0.4928 MB / 0.5189 GB, free: 3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002831/0.3689, allocations: 2.182 MB / 0.521 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.52e-06/0.3689, allocations: 1.062 kB / 0.521 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.507e-06/0.3689, allocations: 0 / 0.521 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.492e-06/0.369, allocations: 0 / 0.521 GB, free: 1.473 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Nonlinear.mo:8:5-85: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 4.0.0+maint.om/Math/Nonlinear.mo:87:5-157: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 4.0.0+maint.om/Math/Nonlinear.mo:159:5-233: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 4.0.0+maint.om/Math/Nonlinear.mo:235:5-313: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.002085/0.371, allocations: 0.6073 MB / 0.5216 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.651e-05/0.3711, allocations: 13.19 kB / 0.5216 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.029e-05/0.3711, allocations: 2.422 kB / 0.5216 GB, free: 1.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.765e-05/0.3712, allocations: 18.92 kB / 0.5216 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.096e-05/0.3713, allocations: 4.25 kB / 0.5216 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-06/0.3713, allocations: 0 / 0.5216 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001091/0.3724, allocations: 0.6422 MB / 0.5223 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.666e-06/0.3724, allocations: 0 / 0.5223 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.256e-05/0.3724, allocations: 7.453 kB / 0.5223 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006598/0.3731, allocations: 427.4 kB / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3731, allocations: 1.156 kB / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3731, allocations: 0 / 0.5227 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3731, allocations: 0 / 0.5227 GB, free: 0.8711 MB / 382.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.0003572/0.3735, allocations: 429 kB / 0.5231 GB, free: 452 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3735, allocations: 8.625 kB / 0.5231 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.15e-05/0.3736, allocations: 111.8 kB / 0.5232 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.3736, allocations: 76.22 kB / 0.5233 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.406e-05/0.3737, allocations: 242.4 kB / 0.5235 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.809e-05/0.3738, allocations: 150.9 kB / 0.5237 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.671e-05/0.3739, allocations: 164.4 kB / 0.5238 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.462e-05/0.3739, allocations: 101 kB / 0.5239 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.374, allocations: 75.28 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.606e-05/0.374, allocations: 156.8 kB / 0.5241 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.308e-05/0.3741, allocations: 154.5 kB / 0.5243 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.828e-05/0.3742, allocations: 155.8 kB / 0.5244 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002893/0.3744, allocations: 444.5 kB / 0.5249 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.068e-05/0.3745, allocations: 174.4 kB / 0.525 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.215e-05/0.3746, allocations: 80.75 kB / 0.5251 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.749e-05/0.3746, allocations: 76.56 kB / 0.5252 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.975e-05/0.3747, allocations: 132.1 kB / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 3.065e-06/0.3747, allocations: 1.281 kB / 0.5253 GB, free: 14.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.555e-05/0.3748, allocations: 31.67 kB / 0.5253 GB, free: 14.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.589e-05/0.3749, allocations: 158.2 kB / 0.5255 GB, free: 13.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.66e-05/0.375, allocations: 93.86 kB / 0.5256 GB, free: 13.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.375, allocations: 27.02 kB / 0.5256 GB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.375, allocations: 80.14 kB / 0.5257 GB, free: 13.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-06/0.375, allocations: 0 / 0.5257 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.506e-05/0.3751, allocations: 15.7 kB / 0.5257 GB, free: 13.63 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3752, allocations: 311.5 kB / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.691e-06/0.3752, allocations: 2.812 kB / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.141e-05/0.3752, allocations: 0.7031 kB / 0.526 GB, free: 13.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.901e-05/0.3753, allocations: 83.31 kB / 0.5261 GB, free: 13.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.606e-05/0.3753, allocations: 77.41 kB / 0.5261 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.039e-05/0.3754, allocations: 37.03 kB / 0.5262 GB, free: 13.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.3754, allocations: 79.59 kB / 0.5263 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.077e-05/0.3754, allocations: 82.11 kB / 0.5263 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.454e-05/0.3755, allocations: 159.2 kB / 0.5265 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.196e-05/0.3756, allocations: 85.17 kB / 0.5266 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.176e-05/0.3756, allocations: 155.2 kB / 0.5267 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.907e-05/0.3757, allocations: 82.58 kB / 0.5268 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.3757, allocations: 75.98 kB / 0.5269 GB, free: 12.43 MB / 398.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.0001448/0.3759, allocations: 260.4 kB / 0.5271 GB, free: 12.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.009e-05/0.376, allocations: 112.4 kB / 0.5272 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.45e-05/0.376, allocations: 112.9 kB / 0.5273 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-05/0.3761, allocations: 176.9 kB / 0.5275 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-05/0.3762, allocations: 188.2 kB / 0.5277 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.153e-05/0.3763, allocations: 176.9 kB / 0.5278 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.3766, allocations: 403.1 kB / 0.5282 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.847e-05/0.3766, allocations: 111.1 kB / 0.5283 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.912e-05/0.3767, allocations: 102.8 kB / 0.5284 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-05/0.3768, allocations: 182 kB / 0.5286 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-05/0.3769, allocations: 178.1 kB / 0.5288 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.826e-05/0.377, allocations: 182 kB / 0.529 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.299e-05/0.377, allocations: 181.2 kB / 0.5291 GB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001517/0.3772, allocations: 314.5 kB / 0.5294 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.692e-05/0.3773, allocations: 181.1 kB / 0.5296 GB, free: 9.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.581e-05/0.3774, allocations: 182.5 kB / 0.5298 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.426e-05/0.3775, allocations: 107.3 kB / 0.5299 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.3776, allocations: 184.8 kB / 0.53 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.3776, allocations: 103.5 kB / 0.5301 GB, free: 8.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.394e-05/0.3776, allocations: 75.28 kB / 0.5302 GB, free: 8.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3776, allocations: 0 / 0.5302 GB, free: 8.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006694/0.3783, allocations: 129.3 kB / 0.5303 GB, free: 8.785 MB / 398.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.001188/0.3795, allocations: 1.055 MB / 0.5314 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.163e-05/0.3796, allocations: 2.406 kB / 0.5314 GB, free: 7.91 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.3796, allocations: 4 kB / 0.5314 GB, free: 7.906 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.3796, allocations: 3.938 kB / 0.5314 GB, free: 7.902 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.38, allocations: 459.8 kB / 0.5318 GB, free: 7.453 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004305/0.3804, allocations: 224.1 kB / 0.532 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.3807, allocations: 0.6734 MB / 0.5327 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.212e-06/0.3807, allocations: 1.5 kB / 0.5327 GB, free: 6.535 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.465e-05/0.3807, allocations: 12.5 kB / 0.5327 GB, free: 6.523 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3807, allocations: 0 / 0.5327 GB, free: 6.523 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02195/0.4027, allocations: 3.957 MB / 0.5366 GB, free: 4.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.326, allocations: 4.875 kB / 0.5366 GB, free: 4.719 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches