Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001783/0.001783, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247.5 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2305/0.2305, allocations: 46.12 MB / 344.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 79.23 kB / 418.3 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.12, allocations: 62.46 MB / 480.8 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01919/0.1392, allocations: 17.24 MB / 498 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.1515, allocations: 5.494 MB / 0.4917 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003458/0.155, allocations: 115.6 kB / 0.4918 GB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008865/0.1639, allocations: 4.349 MB / 0.4961 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00753/0.1715, allocations: 2.696 MB / 0.4987 GB, free: 7.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003689/0.1752, allocations: 1.47 MB / 0.5001 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2243/0.3996, allocations: 8.621 MB / 0.5085 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008519/0.4081, allocations: 5.378 MB / 0.5138 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005826/0.414, allocations: 2.657 MB / 0.5164 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007179/0.4212, allocations: 3.815 MB / 0.5201 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002872/0.4241, allocations: 0.5334 MB / 0.5206 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005438/0.4296, allocations: 1.608 MB / 0.5222 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004658/0.4343, allocations: 3.299 MB / 0.5254 GB, free: 11.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00637/0.4407, allocations: 3.628 MB / 0.529 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01175/0.4525, allocations: 10.79 MB / 0.5395 GB, free: 3.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.4525, allocations: 4 kB / 0.5395 GB, free: 3.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4525, allocations: 0 / 0.5395 GB, free: 3.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004404/0.453, allocations: 0 / 0.5395 GB, free: 3.492 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.01961/0.4726, allocations: 8.173 MB / 0.5475 GB, free: 13.88 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4727, allocations: 12.03 kB / 0.5475 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02998/0.5027, allocations: 3.676 MB / 0.5511 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01387/0.5166, allocations: 5.176 MB / 0.5561 GB, free: 5.191 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003669/0.517, allocations: 378.5 kB / 0.5565 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/0.5193, allocations: 0.5119 MB / 0.557 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03523/0.5545, allocations: 16.24 MB / 0.5729 GB, free: 3.398 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003743/0.5549, allocations: 83.86 kB / 0.5729 GB, free: 3.348 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00164/0.5566, allocations: 238.2 kB / 0.5732 GB, free: 3.168 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005152/0.5617, allocations: 2.917 MB / 0.576 GB, free: 300 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03375/0.5955, allocations: 13.7 MB / 0.5894 GB, free: 2.852 MB / 430.1 MB 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.1033/0.6989, allocations: 64.73 MB / 0.6526 GB, free: 1.066 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02581/0.7248, allocations: 7.839 MB / 0.6603 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007518/0.7323, allocations: 4.283 MB / 0.6645 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03933/0.7717, allocations: 19.36 MB / 0.6834 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.215e-05/0.7718, allocations: 64.56 kB / 0.6834 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 6.061e-06/0.7718, allocations: 0 / 0.6834 GB, free: 0.8281 MB / 0.5137 GB Notification: Performance of matching and sorting (n=366): time 0.4215/1.193, allocations: 51.85 MB / 0.7341 GB, free: 184.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.193, allocations: 278.5 kB / 0.7343 GB, free: 183.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/1.204, allocations: 6.045 MB / 0.7402 GB, free: 181.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008986/1.205, allocations: 80.89 kB / 0.7403 GB, free: 181.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002986/1.208, allocations: 4.67 MB / 0.7449 GB, free: 178.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001904/1.21, allocations: 1.354 MB / 0.7462 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003677/1.214, allocations: 1.904 MB / 0.7481 GB, free: 176.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.65e-05/1.214, allocations: 305.1 kB / 0.7483 GB, free: 175.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005991/1.22, allocations: 4.209 MB / 0.7525 GB, free: 174.5 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008806/1.228, allocations: 9.431 MB / 0.7617 GB, free: 166.1 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0152/1.244, allocations: 14.59 MB / 0.7759 GB, free: 154.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001515/1.244, allocations: 52 kB / 0.776 GB, free: 154.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03472/1.279, allocations: 17.55 MB / 0.7931 GB, free: 138.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.00012/1.279, allocations: 86.66 kB / 0.7932 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001784/1.279, allocations: 180.1 kB / 0.7934 GB, free: 137.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/1.293, allocations: 4.592 MB / 0.7979 GB, free: 133.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006589/1.299, allocations: 2.121 MB / 0.7999 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03019/1.33, allocations: 25.46 MB / 0.8248 GB, free: 105.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00827/1.338, allocations: 0.5245 MB / 0.8253 GB, free: 104.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001807/1.34, allocations: 0.539 MB / 0.8258 GB, free: 104.3 MB / 0.545 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 (1130): * Single equations (assignments): 1125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007171/1.347, allocations: 3.117 MB / 0.8289 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001714/1.349, allocations: 0.5593 MB / 0.8294 GB, free: 100.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/1.371, allocations: 10.71 MB / 0.8399 GB, free: 89.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.836e-05/1.371, allocations: 41.89 kB / 0.8399 GB, free: 89.79 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.955e-05/1.371, allocations: 24 kB / 0.8399 GB, free: 89.76 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.122e-05/1.371, allocations: 19.92 kB / 0.84 GB, free: 89.74 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04087/1.412, allocations: 20.47 MB / 0.8599 GB, free: 69.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.665e-05/1.412, allocations: 0 / 0.8599 GB, free: 69.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002826/1.415, allocations: 0.5305 MB / 0.8605 GB, free: 68.65 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01322/1.428, allocations: 4.249 MB / 0.8646 GB, free: 64.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008346/1.429, allocations: 67.98 kB / 0.8647 GB, free: 64.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02889/1.458, allocations: 23.17 MB / 0.8873 GB, free: 40.88 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.458, allocations: 4 kB / 0.8873 GB, free: 40.87 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02887/1.487, allocations: 15.59 MB / 0.9025 GB, free: 25.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/1.489, allocations: 0.5835 MB / 0.9031 GB, free: 24.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001958/1.491, allocations: 59.98 kB / 0.9032 GB, free: 24.53 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003854/1.495, allocations: 235.6 kB / 0.9034 GB, free: 24.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0011/1.496, allocations: 218.2 kB / 0.9036 GB, free: 24.08 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003167/1.496, allocations: 98.09 kB / 0.9037 GB, free: 23.99 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006007/1.502, allocations: 3.769 MB / 0.9074 GB, free: 20.22 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.31e-07/1.502, allocations: 0 / 0.9074 GB, free: 20.22 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01017/1.512, allocations: 1.897 MB / 0.9092 GB, free: 18.33 MB / 0.545 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 (266): * Single equations (assignments): 261 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001207/1.514, allocations: 211.3 kB / 0.9094 GB, free: 18.12 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.228/1.742, allocations: 15.16 MB / 0.9242 GB, free: 179.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/1.742, allocations: 1.5 kB / 0.9242 GB, free: 179.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006953/1.749, allocations: 4.101 MB / 0.9282 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005408/1.754, allocations: 0.7679 MB / 0.929 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0295/1.784, allocations: 16.97 MB / 0.9456 GB, free: 170.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006425/1.79, allocations: 4.824 MB / 0.9503 GB, free: 168.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/1.792, allocations: 441.2 kB / 0.9507 GB, free: 168.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.062e-06/1.792, allocations: 0 / 0.9507 GB, free: 168.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1705/1.962, allocations: 152.6 MB / 1.1 GB, free: 21.36 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches