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.001439/0.001439, allocations: 104.1 kB / 17.63 MB, free: 5.504 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.001911/0.001912, allocations: 192 kB / 18.56 MB, free: 4.578 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.325/1.325, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2022/0.2022, allocations: 44.19 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 58.47 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1044, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.001499/0.1059, allocations: 487.7 kB / 469.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.1085, allocations: 2.193 MB / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-06/0.1085, allocations: 0 / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.815e-06/0.1085, allocations: 0 / 472 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.122e-06/0.1085, allocations: 0 / 472 MB, free: 11.6 MB / 350.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.001659/0.1102, allocations: 0.6071 MB / 472.6 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.834e-05/0.1102, allocations: 11.94 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.35e-05/0.1102, allocations: 3.984 kB / 472.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.402e-05/0.1103, allocations: 11.98 kB / 472.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.45e-05/0.1103, allocations: 4 kB / 472.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.649e-06/0.1103, allocations: 0 / 472.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007531/0.1111, allocations: 0.5969 MB / 473.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.959e-06/0.1111, allocations: 0 / 473.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.782e-05/0.1111, allocations: 7.984 kB / 473.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004789/0.1116, allocations: 431.3 kB / 473.7 MB, free: 9.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1116, allocations: 4 kB / 473.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1116, allocations: 0 / 473.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.1116, allocations: 4 kB / 473.7 MB, free: 9.93 MB / 350.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.0003639/0.112, allocations: 417.3 kB / 474.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.112, allocations: 8.031 kB / 474.1 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.506e-05/0.1121, allocations: 110 kB / 474.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.255e-05/0.1122, allocations: 84.2 kB / 474.3 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.904e-05/0.1123, allocations: 235.7 kB / 474.5 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-05/0.1124, allocations: 154.9 kB / 474.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.1124, allocations: 158.5 kB / 474.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.878e-05/0.1125, allocations: 101 kB / 474.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.1125, allocations: 83.22 kB / 475 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.703e-05/0.1126, allocations: 150.6 kB / 475.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.039e-05/0.1127, allocations: 154.6 kB / 475.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.914e-05/0.1127, allocations: 154.5 kB / 475.5 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002539/0.113, allocations: 445.9 kB / 475.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.427e-05/0.1131, allocations: 173.1 kB / 476.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.877e-05/0.1131, allocations: 92.06 kB / 476.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.1131, allocations: 83.27 kB / 476.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.459e-05/0.1132, allocations: 135.5 kB / 476.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 7.91e-07/0.1132, allocations: 0 / 476.4 MB, free: 7.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.018e-05/0.1133, allocations: 33.7 kB / 476.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1134, allocations: 152.4 kB / 476.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.888e-05/0.1134, allocations: 89.86 kB / 476.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.1135, allocations: 29.7 kB / 476.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.831e-05/0.1135, allocations: 80.14 kB / 476.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.323e-06/0.1135, allocations: 0 / 476.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.378e-05/0.1135, allocations: 17.7 kB / 476.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.685e-05/0.1136, allocations: 314.8 kB / 477.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.67e-06/0.1137, allocations: 3.938 kB / 477.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.682e-05/0.1137, allocations: 0 / 477.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.817e-05/0.1137, allocations: 75.28 kB / 477.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.146e-05/0.1137, allocations: 79.31 kB / 477.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.106e-05/0.1138, allocations: 37.64 kB / 477.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.1138, allocations: 79.28 kB / 477.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/0.1139, allocations: 83.22 kB / 477.4 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.304e-05/0.1139, allocations: 154.5 kB / 477.6 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.059e-05/0.114, allocations: 75.28 kB / 477.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.441e-05/0.114, allocations: 154.5 kB / 477.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.119e-05/0.1141, allocations: 83.28 kB / 477.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.1141, allocations: 79.22 kB / 478 MB, free: 5.395 MB / 350.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.0001173/0.1142, allocations: 264.4 kB / 478.2 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.678e-05/0.1143, allocations: 104.9 kB / 478.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.1143, allocations: 108.1 kB / 478.4 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.781e-05/0.1144, allocations: 184.2 kB / 478.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.88e-05/0.1145, allocations: 180.3 kB / 478.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.584e-05/0.1146, allocations: 180.2 kB / 479 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.1148, allocations: 405.2 kB / 479.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.407e-05/0.1149, allocations: 109 kB / 479.5 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.035e-05/0.1149, allocations: 104.9 kB / 479.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.271e-05/0.115, allocations: 184.2 kB / 479.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/0.1151, allocations: 180.2 kB / 479.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.867e-05/0.1152, allocations: 188.2 kB / 480.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.269e-05/0.1152, allocations: 176.3 kB / 480.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001093/0.1153, allocations: 307.7 kB / 480.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/0.1154, allocations: 190 kB / 480.8 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.997e-05/0.1154, allocations: 184.3 kB / 480.9 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.89e-05/0.1155, allocations: 101 kB / 481 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.1156, allocations: 180.2 kB / 481.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.1156, allocations: 104.9 kB / 481.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.264e-05/0.1156, allocations: 83.28 kB / 481.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1156, allocations: 0 / 481.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004501/0.1161, allocations: 132 kB / 481.5 MB, free: 1.598 MB / 350.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.0008745/0.117, allocations: 1.037 MB / 482.6 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.775e-05/0.117, allocations: 3.984 kB / 482.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.117, allocations: 0 / 482.6 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.547e-06/0.117, allocations: 4 kB / 482.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.1173, allocations: 467.6 kB / 483 MB, free: 84 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003447/0.1177, allocations: 237.9 kB / 483.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.1179, allocations: 0.6729 MB / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.469e-06/0.1179, allocations: 0 / 483.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.598e-06/0.1179, allocations: 11.44 kB / 483.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1179, allocations: 0 / 483.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.1475, allocations: 3.929 MB / 487.9 MB, free: 11.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.562/9.709, allocations: 8.047 kB / 487.9 MB, free: 11.21 MB / 366.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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