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.001552/0.001552, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.42/2.42, allocations: 227.4 MB / 246.9 MB, free: 9.02 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4355/0.4355, allocations: 46.11 MB / 344.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002578/0.002577, allocations: 74.66 kB / 417.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1743, allocations: 62.45 MB / 479.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.4886/0.6629, allocations: 72.7 MB / 0.5397 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.06078/0.7238, allocations: 14.51 MB / 0.5539 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02871/0.7526, allocations: 329.9 kB / 0.5542 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.7648, allocations: 4.323 MB / 0.5584 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01313/0.778, allocations: 2.547 MB / 0.5609 GB, free: 3.711 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006119/0.7842, allocations: 1.357 MB / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02509/0.8094, allocations: 12.03 MB / 0.574 GB, free: 7.039 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01342/0.8228, allocations: 5.28 MB / 0.5791 GB, free: 1.711 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008496/0.8314, allocations: 2.382 MB / 0.5814 GB, free: 15.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01089/0.8424, allocations: 4.07 MB / 0.5854 GB, free: 11.24 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003835/0.8463, allocations: 388 kB / 0.5858 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008536/0.8549, allocations: 1.545 MB / 0.5873 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009002/0.864, allocations: 3.191 MB / 0.5904 GB, free: 6.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01379/0.8779, allocations: 3.475 MB / 0.5938 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01968/0.8976, allocations: 8.646 MB / 0.6022 GB, free: 9.953 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.8977, allocations: 0 / 0.6022 GB, free: 9.953 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.8977, allocations: 0 / 0.6022 GB, free: 9.953 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005308/0.8982, allocations: 0 / 0.6022 GB, free: 9.953 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.04638/0.9446, allocations: 8.191 MB / 0.6102 GB, free: 1.676 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.536e-05/0.9447, allocations: 8.031 kB / 0.6103 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04521/0.99, allocations: 3.666 MB / 0.6138 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02214/1.012, allocations: 5.184 MB / 0.6189 GB, free: 8.719 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006922/1.013, allocations: 369.8 kB / 0.6192 GB, free: 8.355 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00395/1.017, allocations: 0.5154 MB / 0.6197 GB, free: 7.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05654/1.073, allocations: 16.24 MB / 0.6356 GB, free: 6.531 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005909/1.074, allocations: 79.3 kB / 0.6357 GB, free: 6.453 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00323/1.077, allocations: 239.8 kB / 0.6359 GB, free: 6.219 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007928/1.085, allocations: 2.919 MB / 0.6388 GB, free: 3.293 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04069/1.126, allocations: 13.71 MB / 0.6521 GB, free: 5.562 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.1502/1.276, allocations: 64.73 MB / 0.7154 GB, free: 2.957 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4608/1.737, allocations: 7.828 MB / 0.723 GB, free: 194.6 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01207/1.749, allocations: 4.283 MB / 0.7272 GB, free: 192.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04767/1.797, allocations: 19.36 MB / 0.7461 GB, free: 183.1 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.786e-05/1.797, allocations: 62.72 kB / 0.7462 GB, free: 183 MB / 0.545 GB Notification: Performance of pre-optimization done (n=284): time 1.017e-05/1.797, allocations: 3.75 kB / 0.7462 GB, free: 183 MB / 0.545 GB Notification: Performance of matching and sorting (n=366): time 0.2325/2.03, allocations: 51.85 MB / 0.7968 GB, free: 140.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00015/2.03, allocations: 273.8 kB / 0.7971 GB, free: 140.3 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01812/2.048, allocations: 6.05 MB / 0.803 GB, free: 134.3 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001437/2.05, allocations: 81.7 kB / 0.803 GB, free: 134.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005121/2.055, allocations: 4.665 MB / 0.8076 GB, free: 129.5 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003014/2.058, allocations: 1.35 MB / 0.8089 GB, free: 128.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009086/2.067, allocations: 1.904 MB / 0.8108 GB, free: 126.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.454e-05/2.067, allocations: 305.1 kB / 0.8111 GB, free: 126 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01214/2.079, allocations: 4.212 MB / 0.8152 GB, free: 121.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01641/2.096, allocations: 9.432 MB / 0.8244 GB, free: 109.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01803/2.114, allocations: 14.59 MB / 0.8386 GB, free: 92.61 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002875/2.114, allocations: 52 kB / 0.8387 GB, free: 92.56 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.04382/2.158, allocations: 17.54 MB / 0.8558 GB, free: 74.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005329/2.159, allocations: 88.25 kB / 0.8559 GB, free: 74.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006639/2.159, allocations: 180 kB / 0.8561 GB, free: 74.72 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/2.179, allocations: 4.588 MB / 0.8606 GB, free: 70.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00824/2.188, allocations: 2.121 MB / 0.8626 GB, free: 68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04069/2.228, allocations: 23.72 MB / 0.8858 GB, free: 44.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01616/2.245, allocations: 0.5267 MB / 0.8863 GB, free: 43.49 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003087/2.248, allocations: 0.5416 MB / 0.8868 GB, free: 42.95 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.008592/2.256, allocations: 3.112 MB / 0.8899 GB, free: 39.83 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00202/2.258, allocations: 0.5631 MB / 0.8904 GB, free: 39.26 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02692/2.285, allocations: 10.71 MB / 0.9009 GB, free: 28.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.401e-05/2.285, allocations: 39.94 kB / 0.9009 GB, free: 28.45 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.541e-05/2.286, allocations: 16 kB / 0.9009 GB, free: 28.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.705e-05/2.286, allocations: 20.59 kB / 0.901 GB, free: 28.41 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5009/2.787, allocations: 20.47 MB / 0.9209 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001257/2.787, allocations: 1.188 kB / 0.9209 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005674/2.792, allocations: 0.5277 MB / 0.9215 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02438/2.817, allocations: 4.236 MB / 0.9256 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001258/2.818, allocations: 70.66 kB / 0.9257 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04764/2.866, allocations: 21.49 MB / 0.9467 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/2.866, allocations: 0.9375 kB / 0.9467 GB, free: 163.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05319/2.919, allocations: 15.6 MB / 0.9619 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002576/2.922, allocations: 0.5904 MB / 0.9625 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004052/2.926, allocations: 66.94 kB / 0.9625 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007813/2.934, allocations: 229.2 kB / 0.9627 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00262/2.936, allocations: 219.3 kB / 0.9629 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001322/2.938, allocations: 101.7 kB / 0.963 GB, free: 157.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01372/2.952, allocations: 3.771 MB / 0.9667 GB, free: 156.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.683e-06/2.952, allocations: 0 / 0.9667 GB, free: 156.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01887/2.97, allocations: 1.893 MB / 0.9686 GB, free: 156 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.002016/2.973, allocations: 208.3 kB / 0.9688 GB, free: 155.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02579/2.998, allocations: 10.44 MB / 0.979 GB, free: 145.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/2.998, allocations: 4 kB / 0.979 GB, free: 145.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.008869/3.007, allocations: 4.089 MB / 0.983 GB, free: 141.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00865/3.016, allocations: 0.7359 MB / 0.9837 GB, free: 140.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04541/3.061, allocations: 20.15 MB / 1.003 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01258/3.074, allocations: 4.823 MB / 1.008 GB, free: 115.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00335/3.077, allocations: 439.4 kB / 1.008 GB, free: 115.4 MB / 0.545 GB Notification: Performance of SimCode: time 5.08e-06/3.078, allocations: 0 / 1.008 GB, free: 115.4 MB / 0.545 GB Notification: Performance of Templates: time 0.6809/3.758, allocations: 152.6 MB / 1.158 GB, free: 153.7 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