Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001583/0.001583, allocations: 198.3 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.229/1.229, allocations: 226.5 MB / 243.4 MB, free: 6.383 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 93.64 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2913/0.2913, allocations: 44.81 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003078, allocations: 12 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.289, allocations: 62.95 MB / 0.5159 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002195/0.2913, allocations: 2.417 MB / 0.5182 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008226/0.2921, allocations: 0.7041 MB / 0.5189 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2922, allocations: 8.5 kB / 0.5189 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.2924, allocations: 43.47 kB / 0.519 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.2926, allocations: 106.9 kB / 0.5191 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.2928, allocations: 62.44 kB / 0.5191 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002804/0.2931, allocations: 403.3 kB / 0.5195 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.2933, allocations: 124.8 kB / 0.5196 GB, free: 34.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.2934, allocations: 148.5 kB / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.2936, allocations: 153.7 kB / 0.5199 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.2936, allocations: 20.31 kB / 0.5199 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.322e-05/0.2937, allocations: 20.5 kB / 0.52 GB, free: 34.26 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.099e-05/0.2938, allocations: 64.56 kB / 0.52 GB, free: 34.22 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001267/0.2939, allocations: 194.1 kB / 0.5202 GB, free: 34.1 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002257/0.2941, allocations: 315.9 kB / 0.5205 GB, free: 34.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2942, allocations: 0 / 0.5205 GB, free: 34.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2942, allocations: 0 / 0.5205 GB, free: 34.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.893e-06/0.2942, allocations: 0 / 0.5205 GB, free: 34.02 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0006859/0.2949, allocations: 0.5897 MB / 0.5211 GB, free: 33.53 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.2949, allocations: 14.53 kB / 0.5211 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.2951, allocations: 65.56 kB / 0.5212 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002718/0.2954, allocations: 278.9 kB / 0.5214 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.2955, allocations: 26.72 kB / 0.5215 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.613e-05/0.2955, allocations: 42.94 kB / 0.5215 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005123/0.296, allocations: 392.4 kB / 0.5219 GB, free: 32.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.2961, allocations: 18.2 kB / 0.5219 GB, free: 32.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.908e-05/0.2961, allocations: 13.88 kB / 0.5219 GB, free: 32.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.2961, allocations: 7.844 kB / 0.5219 GB, free: 32.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003605/0.2965, allocations: 227.2 kB / 0.5221 GB, free: 32.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.2981, allocations: 1.727 MB / 0.5238 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000317/0.2985, allocations: 264.5 kB / 0.5241 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.2986, allocations: 97.14 kB / 0.5242 GB, free: 31.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.2986, allocations: 9.281 kB / 0.5242 GB, free: 31.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.2987, allocations: 48.53 kB / 0.5242 GB, free: 31.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.413e-06/0.2987, allocations: 0 / 0.5242 GB, free: 31.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0005914/0.2993, allocations: 271.9 kB / 0.5245 GB, free: 31.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.2993, allocations: 208.7 kB / 0.5247 GB, free: 30.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001886/0.2995, allocations: 273 kB / 0.5249 GB, free: 30.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.2995, allocations: 29.7 kB / 0.525 GB, free: 30.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.65e-05/0.2996, allocations: 243.5 kB / 0.5252 GB, free: 30.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.997e-05/0.2997, allocations: 114.9 kB / 0.5253 GB, free: 30.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.2997, allocations: 10.94 kB / 0.5253 GB, free: 30.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.16e-05/0.2998, allocations: 349.5 kB / 0.5256 GB, free: 30 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001667/0.3, allocations: 101.8 kB / 0.5257 GB, free: 29.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002632/0.3002, allocations: 434.7 kB / 0.5262 GB, free: 29.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/0.3007, allocations: 0.5785 MB / 0.5267 GB, free: 28.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3007, allocations: 3.531 kB / 0.5267 GB, free: 28.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006569/0.3014, allocations: 0.5198 MB / 0.5272 GB, free: 28.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.3014, allocations: 11.47 kB / 0.5272 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3014, allocations: 13.81 kB / 0.5273 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.3015, allocations: 14 kB / 0.5273 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/0.3018, allocations: 150.8 kB / 0.5274 GB, free: 28.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.123e-05/0.3019, allocations: 41.53 kB / 0.5274 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/0.3021, allocations: 63.94 kB / 0.5275 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.087e-05/0.3022, allocations: 29.94 kB / 0.5275 GB, free: 28.62 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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 0.0001208/0.3023, allocations: 182.5 kB / 0.5277 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.3024, allocations: 34.44 kB / 0.5277 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.752e-05/0.3025, allocations: 33.62 kB / 0.5278 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3025, allocations: 5.25 kB / 0.5278 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3025, allocations: 6.688 kB / 0.5278 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.3025, allocations: 3.938 kB / 0.5278 GB, free: 28.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009717/0.3035, allocations: 0.6491 MB / 0.5284 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.3035, allocations: 2.562 kB / 0.5284 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003942/0.3039, allocations: 87.03 kB / 0.5285 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.3039, allocations: 7.062 kB / 0.5285 GB, free: 27.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/0.304, allocations: 16.84 kB / 0.5285 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.304, allocations: 7 kB / 0.5285 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.304, allocations: 3.688 kB / 0.5285 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000524/0.3045, allocations: 0.8444 MB / 0.5294 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.357e-05/0.3046, allocations: 105.9 kB / 0.5295 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.3046, allocations: 13.81 kB / 0.5295 GB, free: 27.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003011/0.3049, allocations: 17.66 kB / 0.5295 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.401e-05/0.305, allocations: 22.23 kB / 0.5295 GB, free: 27.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.305, allocations: 11.88 kB / 0.5295 GB, free: 27.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.3051, allocations: 184.9 kB / 0.5297 GB, free: 26.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3051, allocations: 0 / 0.5297 GB, free: 26.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006138/0.3057, allocations: 101.6 kB / 0.5298 GB, free: 26.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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 8.974e-05/0.3058, allocations: 103.2 kB / 0.5299 GB, free: 26.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004127/0.3063, allocations: 295.1 kB / 0.5302 GB, free: 26.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.3063, allocations: 6.656 kB / 0.5302 GB, free: 26.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.3064, allocations: 92.25 kB / 0.5303 GB, free: 26.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009373/0.3074, allocations: 59.94 kB / 0.5303 GB, free: 26.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.3092, allocations: 1.935 MB / 0.5322 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.3094, allocations: 0.7915 MB / 0.533 GB, free: 24.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.177e-05/0.3095, allocations: 30.72 kB / 0.533 GB, free: 24.52 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3095, allocations: 0 / 0.533 GB, free: 24.52 MB / 378.7 MB Notification: Performance of Templates: time 0.005018/0.3145, allocations: 4.052 MB / 0.537 GB, free: 24.13 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches