Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 202.8 kB / 15.8 MB, free: 6.328 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006845/0.0006845, allocations: 99.72 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1726/0.1726, allocations: 44.83 MB / 392 MB, free: 9.332 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002566, allocations: 12 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 62.95 MB / 0.5153 GB, free: 2.77 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.2478/0.3578, allocations: 66.42 MB / 0.5802 GB, free: 11.12 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03582/0.3937, allocations: 14.03 MB / 0.5939 GB, free: 13.05 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01218/0.4059, allocations: 323.1 kB / 0.5942 GB, free: 12.74 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009114/0.415, allocations: 3.417 MB / 0.5975 GB, free: 9.305 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02722/0.4423, allocations: 10.18 MB / 0.6075 GB, free: 15.09 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004865/0.4472, allocations: 1.287 MB / 0.6087 GB, free: 13.8 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.06949/0.5167, allocations: 64.71 MB / 0.6719 GB, free: 13 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01021/0.5269, allocations: 6.381 MB / 0.6782 GB, free: 6.562 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004532/0.5315, allocations: 2.246 MB / 0.6803 GB, free: 4.309 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005568/0.5371, allocations: 3.677 MB / 0.6839 GB, free: 0.6211 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001544/0.5386, allocations: 248 kB / 0.6842 GB, free: 388 kB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003372/0.542, allocations: 1.186 MB / 0.6853 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.003891/0.5459, allocations: 2.984 MB / 0.6882 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002381/0.5483, allocations: 1.31 MB / 0.6895 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.009208/0.5576, allocations: 8.518 MB / 0.6978 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.5576, allocations: 0 / 0.6978 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.814e-06/0.5576, allocations: 0 / 0.6978 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003296/0.5579, allocations: 0 / 0.6978 GB, free: 2.336 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.01357/0.5715, allocations: 6.92 MB / 0.7046 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.5716, allocations: 12.03 kB / 0.7046 GB, free: 11.32 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02585/0.5974, allocations: 3.762 MB / 0.7083 GB, free: 7.543 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.6094, allocations: 5.087 MB / 0.7133 GB, free: 2.375 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000278/0.6097, allocations: 369.5 kB / 0.7136 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001429/0.6111, allocations: 0.5073 MB / 0.7141 GB, free: 1.504 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2369/0.848, allocations: 16.26 MB / 0.73 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002092/0.8483, allocations: 81.81 kB / 0.7301 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006027/0.8489, allocations: 238.7 kB / 0.7303 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004863/0.8537, allocations: 2.926 MB / 0.7331 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02504/0.8788, allocations: 13.71 MB / 0.7465 GB, free: 157.8 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06078/0.9396, allocations: 64.79 MB / 0.8098 GB, free: 91.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01859/0.9582, allocations: 7.957 MB / 0.8176 GB, free: 83.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00438/0.9626, allocations: 4.333 MB / 0.8218 GB, free: 79.48 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02144/0.9841, allocations: 19.36 MB / 0.8407 GB, free: 59.63 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/0.9842, allocations: 68.5 kB / 0.8408 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=290): time 6.693e-06/0.9842, allocations: 0 / 0.8408 GB, free: 59.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=372): time 0.1482/1.132, allocations: 50.47 MB / 0.8901 GB, free: 8.945 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/1.133, allocations: 277.8 kB / 0.8903 GB, free: 8.617 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006391/1.139, allocations: 6.004 MB / 0.8962 GB, free: 2.602 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007634/1.14, allocations: 81.7 kB / 0.8963 GB, free: 2.516 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002552/1.142, allocations: 4.676 MB / 0.9008 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.00185/1.144, allocations: 1.369 MB / 0.9022 GB, free: 12.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004723/1.145, allocations: 192.3 kB / 0.9024 GB, free: 12.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004961/1.145, allocations: 0.711 MB / 0.9031 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006071/1.151, allocations: 4.188 MB / 0.9071 GB, free: 7.383 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2498/1.401, allocations: 9.422 MB / 0.9163 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009823/1.411, allocations: 6.074 MB / 0.9223 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/1.411, allocations: 50.78 kB / 0.9223 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03513/1.446, allocations: 17.5 MB / 0.9394 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001717/1.446, allocations: 81.81 kB / 0.9395 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002575/1.447, allocations: 185.5 kB / 0.9397 GB, free: 154.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01343/1.46, allocations: 4.602 MB / 0.9442 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006848/1.467, allocations: 2.127 MB / 0.9462 GB, free: 153.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02853/1.495, allocations: 23.72 MB / 0.9694 GB, free: 140.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007925/1.503, allocations: 0.5282 MB / 0.9699 GB, free: 139.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002107/1.506, allocations: 0.539 MB / 0.9705 GB, free: 139.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1136): * Single equations (assignments): 1131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(2,100.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005468/1.511, allocations: 3.124 MB / 0.9735 GB, free: 136.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.512, allocations: 0.5612 MB / 0.9741 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01912/1.531, allocations: 10.73 MB / 0.9845 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.713e-05/1.531, allocations: 44 kB / 0.9846 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.114e-05/1.531, allocations: 16 kB / 0.9846 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.197e-05/1.531, allocations: 19.92 kB / 0.9846 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03449/1.566, allocations: 20.53 MB / 1.005 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/1.566, allocations: 0 / 1.005 GB, free: 104.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002441/1.568, allocations: 0.5383 MB / 1.005 GB, free: 104 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01172/1.58, allocations: 4.218 MB / 1.009 GB, free: 99.78 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004965/1.581, allocations: 68.92 kB / 1.009 GB, free: 99.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02498/1.606, allocations: 21.53 MB / 1.03 GB, free: 77.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.606, allocations: 0 / 1.03 GB, free: 77.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02424/1.63, allocations: 15.63 MB / 1.046 GB, free: 62.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/1.631, allocations: 0.5952 MB / 1.046 GB, free: 61.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009697/1.632, allocations: 63.83 kB / 1.046 GB, free: 61.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002661/1.635, allocations: 221.2 kB / 1.047 GB, free: 61.34 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006358/1.636, allocations: 230.3 kB / 1.047 GB, free: 61.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002581/1.636, allocations: 99.97 kB / 1.047 GB, free: 61.01 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004696/1.641, allocations: 3.734 MB / 1.05 GB, free: 57.28 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.31e-07/1.641, allocations: 1.312 kB / 1.05 GB, free: 57.28 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007641/1.648, allocations: 1.929 MB / 1.052 GB, free: 55.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (272): * Single equations (assignments): 267 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000589/1.649, allocations: 224.8 kB / 1.053 GB, free: 55.14 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0141/1.663, allocations: 10.45 MB / 1.063 GB, free: 44.67 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/1.663, allocations: 5.969 kB / 1.063 GB, free: 44.67 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004882/1.668, allocations: 4.117 MB / 1.067 GB, free: 40.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003916/1.672, allocations: 0.7366 MB / 1.068 GB, free: 39.79 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/1.696, allocations: 19.55 MB / 1.087 GB, free: 20.19 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003954/1.7, allocations: 4.835 MB / 1.091 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001729/1.702, allocations: 447.4 kB / 1.092 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of SimCode: time 9.52e-07/1.702, allocations: 0 / 1.092 GB, free: 14.89 MB / 0.5261 GB Notification: Performance of Templates: time 0.3812/2.083, allocations: 152.5 MB / 1.241 GB, free: 63.48 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches