Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001126/0.001132, allocations: 174.6 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.241/1.241, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007727/0.0007726, allocations: 90.34 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2901/0.2901, allocations: 43.56 MB / 363.1 MB, free: 51.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.0003221, allocations: 8 kB / 432 MB, free: 5.609 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09984/0.1002, allocations: 58.85 MB / 490.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.00247/0.1027, allocations: 2.4 MB / 493.2 MB, free: 8.258 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009203/0.1036, allocations: 0.714 MB / 493.9 MB, free: 7.535 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.1037, allocations: 7.938 kB / 493.9 MB, free: 7.527 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1039, allocations: 43.64 kB / 494 MB, free: 7.484 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.104, allocations: 103.1 kB / 494.1 MB, free: 7.383 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.1043, allocations: 63.94 kB / 494.1 MB, free: 7.32 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003327/0.1046, allocations: 406 kB / 494.5 MB, free: 6.922 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1048, allocations: 117.1 kB / 494.7 MB, free: 6.805 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.105, allocations: 143.4 kB / 494.8 MB, free: 6.664 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.1052, allocations: 155.3 kB / 494.9 MB, free: 6.512 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.1052, allocations: 20 kB / 495 MB, free: 6.492 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.1053, allocations: 20 kB / 495 MB, free: 6.473 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.005e-05/0.1053, allocations: 67.69 kB / 495.1 MB, free: 6.406 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1055, allocations: 200.8 kB / 495.2 MB, free: 6.203 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002348/0.1057, allocations: 307.4 kB / 495.5 MB, free: 5.902 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1057, allocations: 4 kB / 495.6 MB, free: 5.898 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1057, allocations: 0 / 495.6 MB, free: 5.898 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1057, allocations: 0 / 495.6 MB, free: 5.898 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.0007012/0.1064, allocations: 0.5772 MB / 496.1 MB, free: 5.273 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.1065, allocations: 12.03 kB / 496.1 MB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.1066, allocations: 44.47 kB / 496.2 MB, free: 5.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/0.1068, allocations: 272.4 kB / 496.5 MB, free: 4.914 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.1069, allocations: 29.38 kB / 496.5 MB, free: 4.887 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.703e-05/0.1069, allocations: 44.28 kB / 496.5 MB, free: 4.844 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005713/0.1075, allocations: 406.3 kB / 496.9 MB, free: 4.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.43e-05/0.1075, allocations: 11.91 kB / 496.9 MB, free: 4.398 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.1076, allocations: 19.98 kB / 497 MB, free: 4.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1076, allocations: 15.98 kB / 497 MB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.108, allocations: 227.7 kB / 497.2 MB, free: 4.141 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.1099, allocations: 1.715 MB / 498.9 MB, free: 2.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000373/0.1103, allocations: 266.3 kB / 499.2 MB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.1105, allocations: 98.08 kB / 499.3 MB, free: 1.879 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.1105, allocations: 4 kB / 499.3 MB, free: 1.875 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.1105, allocations: 50.48 kB / 499.3 MB, free: 1.816 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.462e-06/0.1106, allocations: 0 / 499.3 MB, free: 1.816 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006288/0.1112, allocations: 269.3 kB / 499.6 MB, free: 1.547 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.1113, allocations: 213.6 kB / 499.8 MB, free: 1.289 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.1115, allocations: 278.8 kB / 0.4883 GB, free: 1.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.1115, allocations: 29.7 kB / 0.4884 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.1117, allocations: 247.5 kB / 0.4886 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/0.1117, allocations: 114.4 kB / 0.4887 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/0.1118, allocations: 8 kB / 0.4887 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.1119, allocations: 346.8 kB / 0.489 GB, free: 268 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.1121, allocations: 101.2 kB / 0.4891 GB, free: 168 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1624/0.2745, allocations: 426.8 kB / 0.4896 GB, free: 41.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006372/0.2752, allocations: 0.5719 MB / 0.4901 GB, free: 41.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-05/0.2752, allocations: 3.906 kB / 0.4901 GB, free: 41.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008667/0.2761, allocations: 0.534 MB / 0.4906 GB, free: 41.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2761, allocations: 8.969 kB / 0.4906 GB, free: 41.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.2762, allocations: 12.53 kB / 0.4907 GB, free: 41.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.85e-05/0.2762, allocations: 15.41 kB / 0.4907 GB, free: 41.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004324/0.2766, allocations: 151.1 kB / 0.4908 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.332e-05/0.2767, allocations: 25.05 kB / 0.4908 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.277, allocations: 72.06 kB / 0.4909 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.277, allocations: 30.53 kB / 0.4909 GB, free: 41.38 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.0001675/0.2772, allocations: 186.3 kB / 0.4911 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.2773, allocations: 30.97 kB / 0.4911 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.583e-05/0.2774, allocations: 36.67 kB / 0.4912 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.2774, allocations: 4.469 kB / 0.4912 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.2774, allocations: 2.75 kB / 0.4912 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.2774, allocations: 1.062 kB / 0.4912 GB, free: 41.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.2785, allocations: 0.6511 MB / 0.4918 GB, free: 40.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2785, allocations: 4.984 kB / 0.4918 GB, free: 40.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004121/0.2789, allocations: 89.3 kB / 0.4919 GB, free: 40.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2789, allocations: 2.938 kB / 0.4919 GB, free: 40.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.279, allocations: 21.47 kB / 0.4919 GB, free: 40.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.279, allocations: 8.281 kB / 0.4919 GB, free: 40.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.279, allocations: 5.438 kB / 0.4919 GB, free: 40.83 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.2796, allocations: 0.8362 MB / 0.4928 GB, free: 40.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.2796, allocations: 108.5 kB / 0.4929 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.407e-05/0.2797, allocations: 17.89 kB / 0.4929 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003079/0.28, allocations: 12.14 kB / 0.4929 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.2801, allocations: 21.12 kB / 0.4929 GB, free: 40.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.2801, allocations: 14.19 kB / 0.4929 GB, free: 40.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001595/0.2803, allocations: 180.4 kB / 0.4931 GB, free: 40.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.093e-06/0.2803, allocations: 0 / 0.4931 GB, free: 40.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006508/0.2809, allocations: 103.2 kB / 0.4932 GB, free: 40.03 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.987e-05/0.281, allocations: 111.1 kB / 0.4933 GB, free: 39.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004847/0.2815, allocations: 292.7 kB / 0.4936 GB, free: 39.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2815, allocations: 1.188 kB / 0.4936 GB, free: 39.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.2817, allocations: 94.33 kB / 0.4937 GB, free: 39.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009293/0.2826, allocations: 67.81 kB / 0.4937 GB, free: 39.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.2846, allocations: 1.93 MB / 0.4956 GB, free: 38.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.2848, allocations: 0.7943 MB / 0.4964 GB, free: 37.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.013e-05/0.2849, allocations: 30.45 kB / 0.4964 GB, free: 37.8 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2849, allocations: 0 / 0.4964 GB, free: 37.8 MB / 378.7 MB Notification: Performance of Templates: time 0.00529/0.2902, allocations: 4.046 MB / 0.5004 GB, free: 37.48 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches