Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009643/0.0009641, allocations: 183.8 kB / 17.06 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009014/0.0009015, allocations: 95.41 kB / 292.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3115/0.3115, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 12 kB / 459.9 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3621, allocations: 61.89 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1161/0.4782, allocations: 88.05 MB / 0.5955 GB, free: 7.109 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.4786, allocations: 79.94 kB / 0.5956 GB, free: 7.031 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01659/0.4952, allocations: 6.269 MB / 0.6017 GB, free: 0.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.4952, allocations: 4 kB / 0.6017 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.4952, allocations: 4 kB / 0.6017 GB, free: 0.7422 MB / 410.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.000767/0.496, allocations: 0.5735 MB / 0.6023 GB, free: 124 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.4961, allocations: 16.03 kB / 0.6023 GB, free: 108 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.226e-05/0.4961, allocations: 39.53 kB / 0.6024 GB, free: 68 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.4964, allocations: 263.2 kB / 0.6026 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.4965, allocations: 29 kB / 0.6026 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.203e-05/0.4965, allocations: 40 kB / 0.6027 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005684/0.4971, allocations: 394.1 kB / 0.6031 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.4971, allocations: 11.91 kB / 0.6031 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.4972, allocations: 12 kB / 0.6031 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.4972, allocations: 8 kB / 0.6031 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003953/0.4976, allocations: 233 kB / 0.6033 GB, free: 15.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.4996, allocations: 1.714 MB / 0.605 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.5, allocations: 270.2 kB / 0.6052 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.5, allocations: 4 kB / 0.6052 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.5, allocations: 42.67 kB / 0.6053 GB, free: 12.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.904e-06/0.5001, allocations: 7.875 kB / 0.6053 GB, free: 12.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.000636/0.5007, allocations: 277.3 kB / 0.6056 GB, free: 12.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.554e-05/0.5008, allocations: 214 kB / 0.6058 GB, free: 12.28 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.501, allocations: 238 kB / 0.606 GB, free: 12.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.501, allocations: 33.69 kB / 0.606 GB, free: 12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.5012, allocations: 239.2 kB / 0.6062 GB, free: 11.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.521e-05/0.5013, allocations: 118.5 kB / 0.6064 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.665e-05/0.5013, allocations: 12 kB / 0.6064 GB, free: 11.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.5014, allocations: 342.8 kB / 0.6067 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.5016, allocations: 101.3 kB / 0.6068 GB, free: 11.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003596/0.502, allocations: 429.2 kB / 0.6072 GB, free: 10.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.5022, allocations: 175.8 kB / 0.6074 GB, free: 10.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.5022, allocations: 0 / 0.6074 GB, free: 10.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007621/0.503, allocations: 0.5327 MB / 0.6079 GB, free: 9.895 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.503, allocations: 14.38 kB / 0.6079 GB, free: 9.883 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.5031, allocations: 12 kB / 0.6079 GB, free: 9.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.684e-05/0.5031, allocations: 20 kB / 0.6079 GB, free: 9.852 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.5035, allocations: 147.7 kB / 0.6081 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.916e-05/0.5036, allocations: 19.94 kB / 0.6081 GB, free: 9.688 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.5039, allocations: 75.27 kB / 0.6082 GB, free: 9.613 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.5039, allocations: 28 kB / 0.6082 GB, free: 9.586 MB / 426.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.0001579/0.5041, allocations: 178.1 kB / 0.6084 GB, free: 9.402 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.5042, allocations: 31.67 kB / 0.6084 GB, free: 9.371 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.701e-05/0.5043, allocations: 33.78 kB / 0.6084 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.912e-06/0.5043, allocations: 4 kB / 0.6084 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.5043, allocations: 4 kB / 0.6084 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.5043, allocations: 3.984 kB / 0.6084 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00114/0.5055, allocations: 0.6518 MB / 0.6091 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.5055, allocations: 8.109 kB / 0.6091 GB, free: 8.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004551/0.5059, allocations: 95.89 kB / 0.6092 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.506, allocations: 0 / 0.6092 GB, free: 8.512 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.823e-05/0.506, allocations: 12 kB / 0.6092 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.506, allocations: 7.984 kB / 0.6092 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.506, allocations: 0 / 0.6092 GB, free: 8.492 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007658/0.5068, allocations: 0.9418 MB / 0.6101 GB, free: 7.473 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.423e-05/0.5069, allocations: 104.8 kB / 0.6102 GB, free: 7.352 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.5069, allocations: 15.94 kB / 0.6102 GB, free: 7.336 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/0.5072, allocations: 19.97 kB / 0.6102 GB, free: 7.316 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.5073, allocations: 23.88 kB / 0.6103 GB, free: 7.293 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.5073, allocations: 15.98 kB / 0.6103 GB, free: 7.277 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001591/0.5075, allocations: 182 kB / 0.6105 GB, free: 7.102 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5075, allocations: 0 / 0.6105 GB, free: 7.102 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006629/0.5082, allocations: 108 kB / 0.6106 GB, free: 6.996 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.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 0.0001367/0.5083, allocations: 107.2 kB / 0.6107 GB, free: 6.879 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004861/0.5088, allocations: 290.8 kB / 0.6109 GB, free: 6.598 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5088, allocations: 0 / 0.6109 GB, free: 6.598 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.509, allocations: 95.77 kB / 0.611 GB, free: 6.504 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006219/0.5096, allocations: 65.52 kB / 0.6111 GB, free: 6.445 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.5118, allocations: 1.887 MB / 0.6129 GB, free: 4.508 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/0.5122, allocations: 0.8033 MB / 0.6137 GB, free: 3.676 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001703/0.5124, allocations: 47.25 kB / 0.6138 GB, free: 3.629 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.111e-05/0.5124, allocations: 27.44 kB / 0.6138 GB, free: 3.602 MB / 426.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5124, allocations: 0 / 0.6138 GB, free: 3.602 MB / 426.7 MB Notification: Performance of Templates: time 0.005531/0.518, allocations: 2.656 MB / 0.6164 GB, free: 0.9688 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches