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.001135/0.001135, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001164, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1922/0.1922, allocations: 46.19 MB / 345.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002703/0.0002704, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1105, allocations: 63.55 MB / 483.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.2926/0.4032, allocations: 70.92 MB / 0.5416 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03692/0.4401, allocations: 14.43 MB / 0.5557 GB, free: 9.594 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01536/0.4556, allocations: 326.8 kB / 0.556 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002692/0.4583, allocations: 0.631 MB / 0.5567 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007734/0.4661, allocations: 2.565 MB / 0.5592 GB, free: 7.215 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003366/0.4694, allocations: 1.34 MB / 0.5605 GB, free: 6.348 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01496/0.4844, allocations: 12.04 MB / 0.5722 GB, free: 12.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0125/0.497, allocations: 7.09 MB / 0.5792 GB, free: 4.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005158/0.5022, allocations: 2.066 MB / 0.5812 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006762/0.509, allocations: 3.656 MB / 0.5847 GB, free: 15.17 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001861/0.5109, allocations: 244 kB / 0.585 GB, free: 14.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004374/0.5153, allocations: 1.396 MB / 0.5863 GB, free: 13.53 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005333/0.5206, allocations: 3.003 MB / 0.5893 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006844/0.5275, allocations: 3.246 MB / 0.5924 GB, free: 7.246 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.5388, allocations: 8.448 MB / 0.6007 GB, free: 14.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.5388, allocations: 0 / 0.6007 GB, free: 14.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.5388, allocations: 3.938 kB / 0.6007 GB, free: 14.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004707/0.5393, allocations: 0 / 0.6007 GB, free: 14.77 MB / 446.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.01716/0.5565, allocations: 6.78 MB / 0.6073 GB, free: 7.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.5566, allocations: 8.031 kB / 0.6073 GB, free: 7.902 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03168/0.5882, allocations: 3.767 MB / 0.611 GB, free: 4.121 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/0.6061, allocations: 5.172 MB / 0.6161 GB, free: 14.86 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000588/0.6067, allocations: 369.8 kB / 0.6164 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002599/0.6093, allocations: 0.5115 MB / 0.6169 GB, free: 13.99 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04411/0.6535, allocations: 16.31 MB / 0.6328 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002594/0.6538, allocations: 83.2 kB / 0.6329 GB, free: 12.53 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009787/0.6548, allocations: 243.8 kB / 0.6331 GB, free: 12.29 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005003/0.6598, allocations: 2.923 MB / 0.636 GB, free: 9.367 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0294/0.6892, allocations: 13.77 MB / 0.6494 GB, free: 11.58 MB / 494.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.3205/1.01, allocations: 64.73 MB / 0.7127 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02448/1.034, allocations: 7.95 MB / 0.7204 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005791/1.04, allocations: 4.28 MB / 0.7246 GB, free: 140.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02785/1.068, allocations: 19.36 MB / 0.7435 GB, free: 130.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.611e-05/1.068, allocations: 65.88 kB / 0.7436 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=284): time 5.861e-06/1.068, allocations: 0 / 0.7436 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=366): time 0.1747/1.243, allocations: 52.54 MB / 0.7949 GB, free: 85.59 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.957e-05/1.243, allocations: 269.8 kB / 0.7951 GB, free: 85.27 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009994/1.253, allocations: 6.042 MB / 0.801 GB, free: 79.21 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009489/1.254, allocations: 85.7 kB / 0.8011 GB, free: 79.12 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002916/1.257, allocations: 4.665 MB / 0.8057 GB, free: 74.46 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001864/1.259, allocations: 1.347 MB / 0.807 GB, free: 73.12 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00215/1.261, allocations: 0.8175 MB / 0.8078 GB, free: 72.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.333e-05/1.261, allocations: 305.1 kB / 0.8081 GB, free: 72 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00679/1.268, allocations: 4.208 MB / 0.8122 GB, free: 67.78 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009612/1.277, allocations: 9.453 MB / 0.8214 GB, free: 55.86 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0172/1.295, allocations: 14.6 MB / 0.8357 GB, free: 38.92 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002203/1.295, allocations: 52 kB / 0.8357 GB, free: 38.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03897/1.334, allocations: 17.6 MB / 0.8529 GB, free: 21.23 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002527/1.334, allocations: 88.03 kB / 0.853 GB, free: 21.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000307/1.335, allocations: 180 kB / 0.8532 GB, free: 20.96 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01533/1.35, allocations: 4.618 MB / 0.8577 GB, free: 16.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007536/1.357, allocations: 2.125 MB / 0.8597 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03591/1.393, allocations: 23.8 MB / 0.883 GB, free: 6.148 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008593/1.402, allocations: 0.5338 MB / 0.8835 GB, free: 5.617 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002298/1.404, allocations: 0.5438 MB / 0.884 GB, free: 5.078 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.008461/1.413, allocations: 3.122 MB / 0.8871 GB, free: 1.945 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002173/1.415, allocations: 0.5592 MB / 0.8876 GB, free: 1.379 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03011/1.445, allocations: 10.76 MB / 0.8982 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.746e-05/1.445, allocations: 40 kB / 0.8982 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.369e-05/1.445, allocations: 19.94 kB / 0.8982 GB, free: 6.492 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001171/1.446, allocations: 23.88 kB / 0.8982 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05331/1.499, allocations: 20.51 MB / 0.9183 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.201e-05/1.499, allocations: 7.938 kB / 0.9183 GB, free: 1.828 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003261/1.502, allocations: 0.5344 MB / 0.9188 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01638/1.519, allocations: 4.268 MB / 0.923 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001148/1.52, allocations: 59.98 kB / 0.923 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2862/1.806, allocations: 21.59 MB / 0.9441 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.806, allocations: 2.812 kB / 0.9441 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03269/1.839, allocations: 15.66 MB / 0.9594 GB, free: 215.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001484/1.84, allocations: 0.5928 MB / 0.96 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001641/1.842, allocations: 59.09 kB / 0.96 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003922/1.846, allocations: 244.2 kB / 0.9603 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/1.847, allocations: 222.1 kB / 0.9605 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000515/1.848, allocations: 97.69 kB / 0.9606 GB, free: 215.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.007159/1.855, allocations: 3.763 MB / 0.9642 GB, free: 213.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.91e-07/1.855, allocations: 0 / 0.9642 GB, free: 213.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009168/1.864, allocations: 1.909 MB / 0.9661 GB, free: 213.7 MB / 0.5919 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.001012/1.865, allocations: 205.8 kB / 0.9663 GB, free: 213.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01563/1.881, allocations: 10.46 MB / 0.9765 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.881, allocations: 0 / 0.9765 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006175/1.887, allocations: 4.097 MB / 0.9805 GB, free: 208 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006719/1.894, allocations: 0.7361 MB / 0.9812 GB, free: 207.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0305/1.924, allocations: 20.25 MB / 1.001 GB, free: 189.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006715/1.931, allocations: 4.818 MB / 1.006 GB, free: 185.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001888/1.933, allocations: 447.4 kB / 1.006 GB, free: 184.8 MB / 0.5919 GB Notification: Performance of SimCode: time 9.72e-07/1.933, allocations: 1.641 kB / 1.006 GB, free: 184.8 MB / 0.5919 GB Notification: Performance of Templates: time 0.16/2.093, allocations: 151.3 MB / 1.154 GB, free: 33.5 MB / 0.5919 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