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.001021/0.001021, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001056/0.001056, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1999/0.1999, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 72.73 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1259, allocations: 62.45 MB / 481.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.01695/0.1429, allocations: 17.25 MB / 498.7 MB, free: 3.227 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.1542, allocations: 5.494 MB / 0.4924 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003021/0.1572, allocations: 115.6 kB / 0.4925 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007671/0.1649, allocations: 4.349 MB / 0.4967 GB, free: 9.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00675/0.1717, allocations: 2.696 MB / 0.4994 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002961/0.1747, allocations: 1.466 MB / 0.5008 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2226/0.3973, allocations: 8.628 MB / 0.5092 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006785/0.4041, allocations: 5.366 MB / 0.5145 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005339/0.4095, allocations: 2.665 MB / 0.5171 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00676/0.4163, allocations: 3.81 MB / 0.5208 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002015/0.4183, allocations: 0.5338 MB / 0.5213 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004987/0.4233, allocations: 1.616 MB / 0.5229 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005117/0.4284, allocations: 3.292 MB / 0.5261 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005713/0.4342, allocations: 3.627 MB / 0.5296 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.4464, allocations: 11.12 MB / 0.5405 GB, free: 3.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.4464, allocations: 4 kB / 0.5405 GB, free: 3.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4464, allocations: 3.938 kB / 0.5405 GB, free: 3.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000334/0.4468, allocations: 0 / 0.5405 GB, free: 3.352 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.01836/0.4651, allocations: 8.173 MB / 0.5485 GB, free: 13.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.4652, allocations: 16.03 kB / 0.5485 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02552/0.4907, allocations: 3.669 MB / 0.5521 GB, free: 9.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01446/0.5052, allocations: 5.285 MB / 0.5572 GB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.5056, allocations: 370.8 kB / 0.5576 GB, free: 4.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001986/0.5076, allocations: 0.5169 MB / 0.5581 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02961/0.5372, allocations: 16.24 MB / 0.574 GB, free: 2.605 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001936/0.5375, allocations: 81.42 kB / 0.574 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005721/0.538, allocations: 236.4 kB / 0.5743 GB, free: 2.379 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004385/0.5424, allocations: 2.917 MB / 0.5771 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02706/0.5695, allocations: 13.71 MB / 0.5905 GB, free: 2.059 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.09639/0.6659, allocations: 64.45 MB / 0.6535 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02315/0.6891, allocations: 7.842 MB / 0.6611 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006358/0.6955, allocations: 4.271 MB / 0.6653 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03749/0.733, allocations: 19.37 MB / 0.6842 GB, free: 392 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.458e-05/0.7331, allocations: 68.56 kB / 0.6843 GB, free: 312 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=284): time 5.821e-06/0.7331, allocations: 0 / 0.6843 GB, free: 312 kB / 0.5137 GB Notification: Performance of matching and sorting (n=366): time 0.3775/1.111, allocations: 51.84 MB / 0.7349 GB, free: 184.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.551e-05/1.111, allocations: 273 kB / 0.7351 GB, free: 184.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008738/1.119, allocations: 6.046 MB / 0.7411 GB, free: 182.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008562/1.12, allocations: 85.36 kB / 0.7411 GB, free: 182.1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002754/1.123, allocations: 4.66 MB / 0.7457 GB, free: 178.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001549/1.125, allocations: 1.35 MB / 0.747 GB, free: 177.5 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002267/1.127, allocations: 1.907 MB / 0.7489 GB, free: 176.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.626e-05/1.127, allocations: 305 kB / 0.7492 GB, free: 176.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005098/1.132, allocations: 4.205 MB / 0.7533 GB, free: 174.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007272/1.139, allocations: 9.44 MB / 0.7625 GB, free: 166.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01397/1.153, allocations: 14.59 MB / 0.7767 GB, free: 154.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001488/1.154, allocations: 55.94 kB / 0.7768 GB, free: 154.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03299/1.187, allocations: 17.55 MB / 0.7939 GB, free: 137.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002378/1.187, allocations: 86.34 kB / 0.794 GB, free: 137.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002895/1.187, allocations: 180 kB / 0.7942 GB, free: 137.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0135/1.201, allocations: 4.579 MB / 0.7986 GB, free: 132.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007/1.208, allocations: 2.129 MB / 0.8007 GB, free: 130.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03217/1.24, allocations: 25.43 MB / 0.8256 GB, free: 105 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008487/1.248, allocations: 0.5266 MB / 0.8261 GB, free: 104.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002046/1.251, allocations: 0.5364 MB / 0.8266 GB, free: 104 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.007285/1.258, allocations: 3.121 MB / 0.8296 GB, free: 100.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001855/1.26, allocations: 0.5554 MB / 0.8302 GB, free: 100.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0223/1.282, allocations: 10.72 MB / 0.8407 GB, free: 89.48 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.727e-05/1.282, allocations: 39.94 kB / 0.8407 GB, free: 89.44 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-05/1.282, allocations: 16 kB / 0.8407 GB, free: 89.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001026/1.282, allocations: 19.94 kB / 0.8407 GB, free: 89.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04748/1.33, allocations: 20.32 MB / 0.8606 GB, free: 69.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.69e-05/1.33, allocations: 0 / 0.8606 GB, free: 69.08 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002778/1.333, allocations: 0.5341 MB / 0.8611 GB, free: 68.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01301/1.346, allocations: 4.232 MB / 0.8652 GB, free: 64.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008211/1.347, allocations: 63.98 kB / 0.8653 GB, free: 64.24 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02864/1.375, allocations: 23.17 MB / 0.8879 GB, free: 40.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.375, allocations: 4 kB / 0.8879 GB, free: 40.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02637/1.402, allocations: 15.6 MB / 0.9031 GB, free: 25.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.403, allocations: 0.5884 MB / 0.9037 GB, free: 24.48 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001787/1.405, allocations: 60 kB / 0.9038 GB, free: 24.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003832/1.409, allocations: 233.3 kB / 0.904 GB, free: 24.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001048/1.41, allocations: 222.2 kB / 0.9042 GB, free: 23.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004803/1.411, allocations: 95.98 kB / 0.9043 GB, free: 23.89 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006513/1.417, allocations: 3.765 MB / 0.908 GB, free: 20.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.417, allocations: 4 kB / 0.908 GB, free: 20.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01037/1.428, allocations: 1.904 MB / 0.9098 GB, free: 18.22 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.001272/1.429, allocations: 201.5 kB / 0.91 GB, free: 18.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2038/1.633, allocations: 10.47 MB / 0.9203 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/1.633, allocations: 1.375 kB / 0.9203 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005902/1.639, allocations: 4.098 MB / 0.9243 GB, free: 177.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004524/1.643, allocations: 0.7767 MB / 0.925 GB, free: 177.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02579/1.669, allocations: 16.18 MB / 0.9408 GB, free: 170.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00439/1.673, allocations: 4.848 MB / 0.9456 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005369/1.679, allocations: 2.774 MB / 0.9483 GB, free: 168.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001032/1.68, allocations: 377.1 kB / 0.9486 GB, free: 168.9 MB / 0.545 GB Notification: Performance of SimCode: time 8.71e-07/1.68, allocations: 0 / 0.9486 GB, free: 168.9 MB / 0.545 GB Notification: Performance of Templates: time 0.108/1.788, allocations: 76.81 MB / 1.024 GB, free: 99.77 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 -s gbode -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