Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00104/0.00104, allocations: 199.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 243.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007578/0.0007577, allocations: 95.38 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2955/0.2955, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002741/0.0002742, allocations: 11.98 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3081/0.3084, allocations: 62.95 MB / 0.5159 GB, free: 37.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0004766/0.3089, allocations: 218.4 kB / 0.5161 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.3111, allocations: 2.163 MB / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.02e-06/0.3111, allocations: 0 / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.468e-06/0.3112, allocations: 4 kB / 0.5182 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.553e-06/0.3112, allocations: 0 / 0.5182 GB, free: 35.59 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.001664/0.3128, allocations: 0.5145 MB / 0.5187 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.289e-05/0.3129, allocations: 2.938 kB / 0.5187 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.309e-05/0.3129, allocations: 6.812 kB / 0.5187 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.3131, allocations: 21 kB / 0.5187 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.4e-05/0.3131, allocations: 9.609 kB / 0.5187 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.549e-06/0.3131, allocations: 4 kB / 0.5187 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006925/0.3138, allocations: 0.5756 MB / 0.5193 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.772e-06/0.3138, allocations: 0 / 0.5193 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.791e-05/0.3139, allocations: 32.52 kB / 0.5193 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.3142, allocations: 294.7 kB / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3142, allocations: 0 / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3142, allocations: 0 / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.339e-06/0.3142, allocations: 0 / 0.5196 GB, free: 35.07 MB / 378.7 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.0002653/0.3145, allocations: 430 kB / 0.52 GB, free: 34.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.3145, allocations: 11.84 kB / 0.52 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.3146, allocations: 76.22 kB / 0.5201 GB, free: 34.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.783e-05/0.3146, allocations: 235.7 kB / 0.5203 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.3147, allocations: 154.9 kB / 0.5205 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.145e-05/0.3147, allocations: 154.7 kB / 0.5206 GB, free: 33.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.18e-05/0.3147, allocations: 112 kB / 0.5207 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.3148, allocations: 78.61 kB / 0.5208 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.849e-05/0.3148, allocations: 150.6 kB / 0.521 GB, free: 33.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.3148, allocations: 150.6 kB / 0.5211 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.825e-05/0.3148, allocations: 154.4 kB / 0.5212 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.315, allocations: 446 kB / 0.5217 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.165e-05/0.3151, allocations: 169.1 kB / 0.5218 GB, free: 32.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.796e-05/0.3151, allocations: 84.08 kB / 0.5219 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.3151, allocations: 75.28 kB / 0.522 GB, free: 32.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.3151, allocations: 142.7 kB / 0.5221 GB, free: 32.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 8.01e-07/0.3151, allocations: 0 / 0.5221 GB, free: 32.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 5.831e-05/0.3152, allocations: 25.7 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.3152, allocations: 160.3 kB / 0.5223 GB, free: 32.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.578e-05/0.3153, allocations: 89.86 kB / 0.5224 GB, free: 32.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.085e-06/0.3153, allocations: 28.61 kB / 0.5224 GB, free: 32.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.271e-05/0.3153, allocations: 80.14 kB / 0.5225 GB, free: 31.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.433e-06/0.3153, allocations: 0 / 0.5225 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1e-07/0.3153, allocations: 0 / 0.5225 GB, free: 31.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/0.3154, allocations: 314.8 kB / 0.5228 GB, free: 31.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.776e-06/0.3154, allocations: 0 / 0.5228 GB, free: 31.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.748e-05/0.3154, allocations: 2.625 kB / 0.5228 GB, free: 31.65 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.357e-05/0.3154, allocations: 75.28 kB / 0.5229 GB, free: 31.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.809e-06/0.3154, allocations: 78.28 kB / 0.5229 GB, free: 31.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.205e-05/0.3155, allocations: 32.88 kB / 0.523 GB, free: 31.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.3155, allocations: 81.41 kB / 0.523 GB, free: 31.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3155, allocations: 83.16 kB / 0.5231 GB, free: 31.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.069e-05/0.3155, allocations: 157.5 kB / 0.5233 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.137e-05/0.3156, allocations: 91.14 kB / 0.5234 GB, free: 31.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.962e-05/0.3156, allocations: 153.8 kB / 0.5235 GB, free: 30.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.235e-05/0.3156, allocations: 77.56 kB / 0.5236 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.3157, allocations: 79.22 kB / 0.5237 GB, free: 30.77 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.262e-05/0.3157, allocations: 263.1 kB / 0.5239 GB, free: 30.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.3158, allocations: 107.9 kB / 0.524 GB, free: 30.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.734e-05/0.3158, allocations: 119.6 kB / 0.5241 GB, free: 30.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.3158, allocations: 183.2 kB / 0.5243 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.789e-05/0.3159, allocations: 176.3 kB / 0.5245 GB, free: 29.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/0.3159, allocations: 180.2 kB / 0.5246 GB, free: 29.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001251/0.316, allocations: 403.6 kB / 0.525 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.3161, allocations: 112.9 kB / 0.5251 GB, free: 29.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.359e-05/0.3161, allocations: 101 kB / 0.5252 GB, free: 29.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.199e-05/0.3161, allocations: 179.4 kB / 0.5254 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.3161, allocations: 183.5 kB / 0.5256 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.527e-05/0.3162, allocations: 180.3 kB / 0.5257 GB, free: 28.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.479e-05/0.3162, allocations: 187.2 kB / 0.5259 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.048e-05/0.3163, allocations: 306 kB / 0.5262 GB, free: 28.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.872e-05/0.3163, allocations: 182 kB / 0.5264 GB, free: 27.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.3163, allocations: 183.2 kB / 0.5266 GB, free: 27.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.49e-05/0.3164, allocations: 115.3 kB / 0.5267 GB, free: 27.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.3164, allocations: 180.3 kB / 0.5268 GB, free: 27.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.3165, allocations: 104.9 kB / 0.5269 GB, free: 27.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.383e-05/0.3165, allocations: 75.28 kB / 0.527 GB, free: 27.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3165, allocations: 0 / 0.527 GB, free: 27.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004593/0.317, allocations: 132.3 kB / 0.5271 GB, free: 27.12 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000763/0.3177, allocations: 429.3 kB / 0.5276 GB, free: 26.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 4.605e-05/0.3178, allocations: 0 / 0.5276 GB, free: 26.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3178, allocations: 0 / 0.5276 GB, free: 26.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.3178, allocations: 4 kB / 0.5276 GB, free: 26.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.318, allocations: 0.5211 MB / 0.5281 GB, free: 26.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 9.961e-05/0.3182, allocations: 177.6 kB / 0.5282 GB, free: 26.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.544e-05/0.3182, allocations: 0.6692 MB / 0.5289 GB, free: 25.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.414e-06/0.3183, allocations: 7.438 kB / 0.5289 GB, free: 25.47 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3183, allocations: 0 / 0.5289 GB, free: 25.47 MB / 378.7 MB Notification: Performance of Templates: time 0.00381/0.3221, allocations: 2.811 MB / 0.5316 GB, free: 25.17 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches