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: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.239/1.239, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007406/0.0007407, allocations: 105.8 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3131/0.3131, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002595, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2873, allocations: 62.96 MB / 0.516 GB, free: 37.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.0004922/0.2878, allocations: 221.5 kB / 0.5162 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.2901, allocations: 2.152 MB / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.478e-06/0.2901, allocations: 0 / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 4.107e-06/0.2901, allocations: 3.938 kB / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.533e-06/0.2901, allocations: 0 / 0.5183 GB, free: 35.41 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.00174/0.2918, allocations: 0.5234 MB / 0.5188 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.827e-05/0.2919, allocations: 10.38 kB / 0.5188 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.841e-05/0.2919, allocations: 0 / 0.5188 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001337/0.2921, allocations: 17.58 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.741e-05/0.2921, allocations: 6.125 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5e-06/0.2921, allocations: 0 / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007448/0.2929, allocations: 0.5845 MB / 0.5194 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.611e-06/0.2929, allocations: 6.875 kB / 0.5194 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.563e-05/0.2929, allocations: 25.7 kB / 0.5194 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.2932, allocations: 289.4 kB / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.2933, allocations: 0 / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2933, allocations: 0 / 0.5197 GB, free: 34.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2933, allocations: 2.938 kB / 0.5197 GB, free: 34.89 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.0002927/0.2936, allocations: 424.6 kB / 0.5201 GB, free: 34.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.2936, allocations: 12.97 kB / 0.5201 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.911e-05/0.2937, allocations: 109 kB / 0.5202 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.2937, allocations: 80.22 kB / 0.5203 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.338e-05/0.2938, allocations: 235.7 kB / 0.5205 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.718e-05/0.2938, allocations: 154.9 kB / 0.5207 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.427e-05/0.2938, allocations: 154.5 kB / 0.5208 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.291e-05/0.2939, allocations: 108 kB / 0.5209 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.2939, allocations: 79.27 kB / 0.521 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.2939, allocations: 153.8 kB / 0.5211 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.521e-05/0.294, allocations: 150.6 kB / 0.5213 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.546e-05/0.294, allocations: 150.6 kB / 0.5214 GB, free: 33.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001634/0.2942, allocations: 449 kB / 0.5218 GB, free: 32.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.771e-05/0.2942, allocations: 173 kB / 0.522 GB, free: 32.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.708e-05/0.2942, allocations: 80.14 kB / 0.5221 GB, free: 32.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.2943, allocations: 82.19 kB / 0.5222 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.2943, allocations: 139.5 kB / 0.5223 GB, free: 32.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 7.82e-07/0.2943, allocations: 4 kB / 0.5223 GB, free: 32.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.638e-05/0.2944, allocations: 36 kB / 0.5223 GB, free: 32.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/0.2944, allocations: 152.4 kB / 0.5225 GB, free: 31.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.774e-05/0.2945, allocations: 89.86 kB / 0.5226 GB, free: 31.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.2945, allocations: 25.7 kB / 0.5226 GB, free: 31.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.603e-05/0.2945, allocations: 83.17 kB / 0.5227 GB, free: 31.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-06/0.2945, allocations: 0 / 0.5227 GB, free: 31.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-07/0.2945, allocations: 0 / 0.5227 GB, free: 31.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.604e-05/0.2946, allocations: 314.8 kB / 0.523 GB, free: 31.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.046e-06/0.2946, allocations: 0 / 0.523 GB, free: 31.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.205e-05/0.2946, allocations: 3 kB / 0.523 GB, free: 31.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.517e-05/0.2946, allocations: 75.28 kB / 0.5231 GB, free: 31.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.2946, allocations: 75.28 kB / 0.5231 GB, free: 31.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.375e-05/0.2947, allocations: 35.98 kB / 0.5232 GB, free: 31.17 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.2947, allocations: 85.28 kB / 0.5232 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/0.2947, allocations: 83.22 kB / 0.5233 GB, free: 31.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.276e-05/0.2948, allocations: 154.6 kB / 0.5235 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-05/0.2948, allocations: 79.22 kB / 0.5235 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.163e-05/0.2948, allocations: 153.4 kB / 0.5237 GB, free: 30.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.819e-05/0.2949, allocations: 79.22 kB / 0.5238 GB, free: 30.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.2949, allocations: 81.58 kB / 0.5238 GB, free: 30.48 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.18e-05/0.295, allocations: 271.3 kB / 0.5241 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.391e-05/0.295, allocations: 104.9 kB / 0.5242 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.295, allocations: 112.3 kB / 0.5243 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/0.2951, allocations: 186.5 kB / 0.5245 GB, free: 29.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.479e-05/0.2951, allocations: 180.2 kB / 0.5247 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-05/0.2951, allocations: 176.3 kB / 0.5248 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.2953, allocations: 411.6 kB / 0.5252 GB, free: 28.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.2953, allocations: 104.9 kB / 0.5253 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.596e-05/0.2953, allocations: 104 kB / 0.5254 GB, free: 28.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.47e-05/0.2953, allocations: 180.2 kB / 0.5256 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.533e-05/0.2954, allocations: 176.3 kB / 0.5258 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-05/0.2954, allocations: 182.5 kB / 0.5259 GB, free: 28.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.962e-05/0.2954, allocations: 188.2 kB / 0.5261 GB, free: 28.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.32e-05/0.2955, allocations: 302.7 kB / 0.5264 GB, free: 27.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.677e-05/0.2955, allocations: 184.4 kB / 0.5266 GB, free: 27.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.812e-05/0.2956, allocations: 180.3 kB / 0.5267 GB, free: 27.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.763e-05/0.2956, allocations: 111.4 kB / 0.5269 GB, free: 27.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.2957, allocations: 183.5 kB / 0.527 GB, free: 27.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.599e-05/0.2957, allocations: 107.8 kB / 0.5271 GB, free: 26.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.659e-05/0.2957, allocations: 79.22 kB / 0.5272 GB, free: 26.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2957, allocations: 0 / 0.5272 GB, free: 26.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004634/0.2962, allocations: 134.6 kB / 0.5273 GB, free: 26.82 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.0008215/0.297, allocations: 1.046 MB / 0.5284 GB, free: 25.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 3.884e-05/0.2971, allocations: 10.81 kB / 0.5284 GB, free: 25.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2971, allocations: 0 / 0.5284 GB, free: 25.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-06/0.2971, allocations: 0 / 0.5284 GB, free: 25.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002429/0.2973, allocations: 0.5172 MB / 0.5289 GB, free: 25.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003165/0.2977, allocations: 272.6 kB / 0.5291 GB, free: 25.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.642e-05/0.2978, allocations: 0.6692 MB / 0.5298 GB, free: 24.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.047e-06/0.2978, allocations: 7.438 kB / 0.5298 GB, free: 24.46 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2978, allocations: 0 / 0.5298 GB, free: 24.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.866/4.164, allocations: 2.891 MB / 0.5326 GB, free: 24.17 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches