Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 196.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008212/0.0008212, allocations: 94.28 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3136/0.3136, allocations: 44.83 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002626/0.0002626, allocations: 12 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2797, allocations: 62.95 MB / 0.5159 GB, free: 37.3 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.001883/0.2816, allocations: 1.987 MB / 0.5179 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008813/0.2825, allocations: 0.8125 MB / 0.5187 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.212e-05/0.2826, allocations: 5.781 kB / 0.5187 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.2828, allocations: 46.53 kB / 0.5187 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001355/0.283, allocations: 64.7 kB / 0.5188 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.2832, allocations: 95.8 kB / 0.5189 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.2834, allocations: 311.7 kB / 0.5192 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001438/0.2836, allocations: 68.5 kB / 0.5192 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001793/0.2838, allocations: 134.6 kB / 0.5194 GB, free: 34.94 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.2839, allocations: 140.7 kB / 0.5195 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.284, allocations: 15.06 kB / 0.5195 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.2841, allocations: 65.53 kB / 0.5196 GB, free: 34.87 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-05/0.2842, allocations: 51.91 kB / 0.5196 GB, free: 34.85 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.976e-05/0.2843, allocations: 145 kB / 0.5198 GB, free: 34.75 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.2845, allocations: 269.9 kB / 0.52 GB, free: 34.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2845, allocations: 0 / 0.52 GB, free: 34.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.2845, allocations: 0 / 0.52 GB, free: 34.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2845, allocations: 0 / 0.52 GB, free: 34.68 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.000674/0.2852, allocations: 0.5453 MB / 0.5206 GB, free: 34.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2853, allocations: 8 kB / 0.5206 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.945e-05/0.2853, allocations: 56.91 kB / 0.5206 GB, free: 34.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2855, allocations: 42.94 kB / 0.5207 GB, free: 34.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.2857, allocations: 245 kB / 0.5209 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.2857, allocations: 24.66 kB / 0.5209 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.2858, allocations: 21.88 kB / 0.5209 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004339/0.2862, allocations: 268.7 kB / 0.5212 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.2862, allocations: 3.906 kB / 0.5212 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.56e-05/0.2863, allocations: 11.03 kB / 0.5212 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.2863, allocations: 10.05 kB / 0.5212 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004143/0.2867, allocations: 230.1 kB / 0.5214 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.2878, allocations: 0.7472 MB / 0.5222 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000444/0.2882, allocations: 253.1 kB / 0.5224 GB, free: 33.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.2885, allocations: 130 kB / 0.5225 GB, free: 33.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.2885, allocations: 13.39 kB / 0.5226 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.457e-05/0.2885, allocations: 37.62 kB / 0.5226 GB, free: 33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.323e-06/0.2885, allocations: 3.938 kB / 0.5226 GB, free: 32.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002525/0.2911, allocations: 1.439 MB / 0.524 GB, free: 32.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.17e-05/0.2911, allocations: 58.31 kB / 0.5241 GB, free: 32.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.2913, allocations: 211.2 kB / 0.5243 GB, free: 31.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.2913, allocations: 36.61 kB / 0.5243 GB, free: 31.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.191e-05/0.2914, allocations: 139.1 kB / 0.5244 GB, free: 31.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/0.2914, allocations: 115.2 kB / 0.5245 GB, free: 31.63 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.2914, allocations: 10.44 kB / 0.5245 GB, free: 31.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.8e-05/0.2915, allocations: 334.9 kB / 0.5249 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002103/0.2917, allocations: 122.5 kB / 0.525 GB, free: 31.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.292, allocations: 156.8 kB / 0.5251 GB, free: 31.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/0.2923, allocations: 235.7 kB / 0.5254 GB, free: 31.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2923, allocations: 0 / 0.5254 GB, free: 31.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006308/0.293, allocations: 407.3 kB / 0.5257 GB, free: 30.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.293, allocations: 8.438 kB / 0.5257 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.293, allocations: 2.531 kB / 0.5258 GB, free: 30.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003618/0.2934, allocations: 168.7 kB / 0.5259 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.2936, allocations: 52.75 kB / 0.526 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005487/0.2941, allocations: 0.7327 MB / 0.5267 GB, free: 30.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.2944, allocations: 56.8 kB / 0.5267 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.33e-05/0.2944, allocations: 8.375 kB / 0.5267 GB, free: 30.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001132/0.2945, allocations: 147.8 kB / 0.5269 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.856e-05/0.2946, allocations: 38.17 kB / 0.5269 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.993e-05/0.2947, allocations: 36.03 kB / 0.527 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2947, allocations: 2.812 kB / 0.527 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2947, allocations: 0 / 0.527 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2947, allocations: 3.328 kB / 0.527 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001146/0.2958, allocations: 0.9193 MB / 0.5279 GB, free: 29.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2958, allocations: 2.469 kB / 0.5279 GB, free: 29.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.2961, allocations: 48.94 kB / 0.5279 GB, free: 29.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002729/0.2963, allocations: 155.9 kB / 0.5281 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.2964, allocations: 10.33 kB / 0.5281 GB, free: 29.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004152/0.2968, allocations: 0.6819 MB / 0.5287 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.2968, allocations: 3.938 kB / 0.5287 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008409/0.2976, allocations: 0.5899 MB / 0.5293 GB, free: 28.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.484e-05/0.2978, allocations: 127.9 kB / 0.5294 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.605e-05/0.2978, allocations: 10.69 kB / 0.5294 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.2981, allocations: 52.41 kB / 0.5295 GB, free: 28.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.2982, allocations: 51.03 kB / 0.5295 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.2982, allocations: 16.67 kB / 0.5296 GB, free: 28.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001016/0.2983, allocations: 149.5 kB / 0.5297 GB, free: 28.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.51e-07/0.2983, allocations: 2.969 kB / 0.5297 GB, free: 28.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003009/0.2986, allocations: 80.03 kB / 0.5298 GB, free: 28.11 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001535/0.3002, allocations: 1.385 MB / 0.5311 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005806/0.3008, allocations: 301.5 kB / 0.5314 GB, free: 27.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3008, allocations: 128 / 0.5314 GB, free: 27.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.3011, allocations: 166.2 kB / 0.5316 GB, free: 26.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.3015, allocations: 33.55 kB / 0.5316 GB, free: 26.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/0.3044, allocations: 1.975 MB / 0.5335 GB, free: 25.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001644/0.3046, allocations: 0.7565 MB / 0.5343 GB, free: 25.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.3047, allocations: 71.36 kB / 0.5343 GB, free: 25.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3047, allocations: 0 / 0.5343 GB, free: 25.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.424/3.728, allocations: 5.021 MB / 0.5392 GB, free: 24.64 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches