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.001059/0.001059, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001126/0.001126, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2091/0.2091, allocations: 44.18 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 71.88 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3446/0.3462, allocations: 60.81 MB / 0.5184 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001545/0.3478, allocations: 0.4896 MB / 0.5189 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002822/0.3507, allocations: 2.185 MB / 0.521 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.042e-06/0.3507, allocations: 3.938 kB / 0.521 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.891e-06/0.3507, allocations: 1 kB / 0.521 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.373e-06/0.3507, allocations: 0 / 0.521 GB, free: 1.316 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.002012/0.3527, allocations: 0.614 MB / 0.5216 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.046e-05/0.3528, allocations: 6.344 kB / 0.5216 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.186e-05/0.3528, allocations: 4.547 kB / 0.5216 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.642e-05/0.3529, allocations: 15.34 kB / 0.5216 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.19e-05/0.3529, allocations: 4.625 kB / 0.5217 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-06/0.353, allocations: 0 / 0.5217 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.354, allocations: 0.6467 MB / 0.5223 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.272e-06/0.354, allocations: 0 / 0.5223 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.012e-05/0.3541, allocations: 1.469 kB / 0.5223 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006623/0.3547, allocations: 430 kB / 0.5227 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.3547, allocations: 0 / 0.5227 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3548, allocations: 0 / 0.5227 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.3548, allocations: 0 / 0.5227 GB, free: 0.7148 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.0003342/0.3551, allocations: 427.8 kB / 0.5231 GB, free: 292 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.3551, allocations: 10.12 kB / 0.5231 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.612e-05/0.3552, allocations: 111.2 kB / 0.5232 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.786e-05/0.3552, allocations: 77.77 kB / 0.5233 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.3554, allocations: 240.9 kB / 0.5235 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.221e-05/0.3554, allocations: 154.9 kB / 0.5237 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.3555, allocations: 159.5 kB / 0.5238 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.964e-05/0.3555, allocations: 102.8 kB / 0.5239 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.723e-05/0.3556, allocations: 79.28 kB / 0.524 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.038e-05/0.3556, allocations: 151.7 kB / 0.5241 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.593e-05/0.3557, allocations: 151.1 kB / 0.5243 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.151e-05/0.3558, allocations: 155.6 kB / 0.5244 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002686/0.356, allocations: 444.7 kB / 0.5249 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.578e-05/0.3561, allocations: 174.3 kB / 0.525 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.027e-05/0.3562, allocations: 84.78 kB / 0.5251 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.3562, allocations: 76.38 kB / 0.5252 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.374e-05/0.3563, allocations: 133.4 kB / 0.5253 GB, free: 13.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 1.002e-06/0.3563, allocations: 0 / 0.5253 GB, free: 13.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 8.055e-05/0.3564, allocations: 35.34 kB / 0.5253 GB, free: 13.88 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.942e-05/0.3565, allocations: 158 kB / 0.5255 GB, free: 13.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.859e-05/0.3565, allocations: 89.86 kB / 0.5256 GB, free: 13.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.3566, allocations: 26.8 kB / 0.5256 GB, free: 13.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.287e-05/0.3566, allocations: 81.39 kB / 0.5257 GB, free: 13.49 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.344e-06/0.3566, allocations: 0 / 0.5257 GB, free: 13.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.3566, allocations: 15.3 kB / 0.5257 GB, free: 13.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3568, allocations: 311.5 kB / 0.526 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.909e-06/0.3568, allocations: 4 kB / 0.526 GB, free: 13.16 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.813e-05/0.3568, allocations: 2.906 kB / 0.526 GB, free: 13.16 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.879e-05/0.3568, allocations: 76.44 kB / 0.5261 GB, free: 13.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.551e-05/0.3569, allocations: 79.94 kB / 0.5261 GB, free: 13.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.66e-05/0.3569, allocations: 36.45 kB / 0.5262 GB, free: 12.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.357, allocations: 81.31 kB / 0.5263 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.982e-05/0.357, allocations: 76.83 kB / 0.5263 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.073e-05/0.3571, allocations: 164.5 kB / 0.5265 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.204e-05/0.3571, allocations: 85.23 kB / 0.5266 GB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-05/0.3572, allocations: 150.6 kB / 0.5267 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.959e-05/0.3573, allocations: 81.39 kB / 0.5268 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.3573, allocations: 77.67 kB / 0.5269 GB, free: 12.28 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.0001152/0.3574, allocations: 260.1 kB / 0.5271 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.347e-05/0.3575, allocations: 119.1 kB / 0.5272 GB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.3575, allocations: 105.3 kB / 0.5273 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-05/0.3576, allocations: 178.2 kB / 0.5275 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.758e-05/0.3577, allocations: 186 kB / 0.5277 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.965e-05/0.3577, allocations: 178.2 kB / 0.5278 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.358, allocations: 412.5 kB / 0.5282 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.161e-05/0.358, allocations: 103 kB / 0.5283 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.3581, allocations: 101.6 kB / 0.5284 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.298e-05/0.3581, allocations: 181.9 kB / 0.5286 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/0.3582, allocations: 178.3 kB / 0.5288 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.079e-05/0.3583, allocations: 183 kB / 0.529 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-05/0.3584, allocations: 185.2 kB / 0.5291 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.3586, allocations: 309.8 kB / 0.5294 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.965e-05/0.3587, allocations: 184.5 kB / 0.5296 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/0.3588, allocations: 182.7 kB / 0.5298 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.169e-05/0.3588, allocations: 111.7 kB / 0.5299 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.75e-05/0.3589, allocations: 178.8 kB / 0.53 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.135e-05/0.359, allocations: 108.9 kB / 0.5302 GB, free: 8.723 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.727e-05/0.359, allocations: 76.17 kB / 0.5302 GB, free: 8.648 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.359, allocations: 1.719 kB / 0.5302 GB, free: 8.648 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005615/0.3596, allocations: 128.2 kB / 0.5303 GB, free: 8.625 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.001141/0.3607, allocations: 1.041 MB / 0.5314 GB, free: 7.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 5.379e-05/0.3608, allocations: 10.38 kB / 0.5314 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3608, allocations: 0 / 0.5314 GB, free: 7.754 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.463e-06/0.3608, allocations: 3.938 kB / 0.5314 GB, free: 7.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.3611, allocations: 460.5 kB / 0.5318 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004026/0.3615, allocations: 222.4 kB / 0.532 GB, free: 7.082 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.3618, allocations: 0.6784 MB / 0.5327 GB, free: 6.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.852e-06/0.3618, allocations: 0.5625 kB / 0.5327 GB, free: 6.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.468e-05/0.3618, allocations: 8.656 kB / 0.5327 GB, free: 6.371 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3618, allocations: 0 / 0.5327 GB, free: 6.371 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.388, allocations: 3.959 MB / 0.5366 GB, free: 4.586 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.098, allocations: 9.047 kB / 0.5366 GB, free: 4.578 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