Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_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_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001208/0.001208, allocations: 102 kB / 18.45 MB, free: 4.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 213.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1901/0.1901, allocations: 46.09 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 75.88 kB / 482 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2901, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.01642/0.3065, allocations: 17.28 MB / 0.5485 GB, free: 20 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01164/0.3182, allocations: 5.49 MB / 0.5539 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003366/0.3216, allocations: 119.6 kB / 0.554 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008228/0.3299, allocations: 4.357 MB / 0.5583 GB, free: 6.434 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00726/0.3372, allocations: 2.796 MB / 0.561 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003057/0.3403, allocations: 1.451 MB / 0.5624 GB, free: 2.176 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0111/0.3514, allocations: 8.651 MB / 0.5709 GB, free: 9.504 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007104/0.3585, allocations: 5.358 MB / 0.5761 GB, free: 4.074 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004733/0.3633, allocations: 2.66 MB / 0.5787 GB, free: 1.406 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005425/0.3688, allocations: 3.836 MB / 0.5824 GB, free: 13.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.3707, allocations: 0.5391 MB / 0.583 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.3742, allocations: 1.611 MB / 0.5845 GB, free: 11.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004059/0.3783, allocations: 3.363 MB / 0.5878 GB, free: 8.035 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005522/0.3839, allocations: 3.631 MB / 0.5914 GB, free: 4.383 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01305/0.3969, allocations: 11.14 MB / 0.6022 GB, free: 9.199 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.397, allocations: 4 kB / 0.6022 GB, free: 9.195 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.397, allocations: 0 / 0.6022 GB, free: 9.195 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003631/0.3974, allocations: 0 / 0.6022 GB, free: 9.195 MB / 462.1 MB 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.01883/0.4162, allocations: 8.191 MB / 0.6102 GB, free: 0.918 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4163, allocations: 12.03 kB / 0.6103 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0252/0.4415, allocations: 3.67 MB / 0.6138 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01171/0.4532, allocations: 5.289 MB / 0.619 GB, free: 7.852 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003132/0.4536, allocations: 377.8 kB / 0.6194 GB, free: 7.48 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00179/0.4554, allocations: 0.5152 MB / 0.6199 GB, free: 6.965 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02732/0.4827, allocations: 16.25 MB / 0.6357 GB, free: 5.645 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002408/0.483, allocations: 75.36 kB / 0.6358 GB, free: 5.57 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001066/0.4841, allocations: 235.8 kB / 0.636 GB, free: 5.34 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004034/0.4881, allocations: 2.927 MB / 0.6389 GB, free: 2.406 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02558/0.5137, allocations: 13.72 MB / 0.6523 GB, free: 4.656 MB / 0.4981 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.07414/0.5879, allocations: 64.53 MB / 0.7153 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2386/0.8265, allocations: 7.878 MB / 0.723 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005254/0.8318, allocations: 4.345 MB / 0.7273 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02259/0.8544, allocations: 19.46 MB / 0.7463 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/0.8545, allocations: 63.5 kB / 0.7463 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=290): time 5.12e-06/0.8545, allocations: 0 / 0.7463 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=372): time 0.1331/0.9876, allocations: 49.84 MB / 0.795 GB, free: 100.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/0.9877, allocations: 273.8 kB / 0.7953 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005674/0.9933, allocations: 6.038 MB / 0.8012 GB, free: 94.33 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005847/0.9939, allocations: 81.7 kB / 0.8012 GB, free: 94.25 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001738/0.9957, allocations: 4.668 MB / 0.8058 GB, free: 89.58 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009959/0.9967, allocations: 1.371 MB / 0.8071 GB, free: 88.22 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00193/0.9986, allocations: 1.908 MB / 0.809 GB, free: 86.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.512e-05/0.9987, allocations: 309.1 kB / 0.8093 GB, free: 86 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004479/1.003, allocations: 4.231 MB / 0.8134 GB, free: 81.76 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00625/1.009, allocations: 9.461 MB / 0.8227 GB, free: 69.76 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/1.021, allocations: 14.64 MB / 0.837 GB, free: 52.55 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-05/1.022, allocations: 52 kB / 0.837 GB, free: 52.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.02756/1.049, allocations: 17.56 MB / 0.8542 GB, free: 34.89 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.697e-05/1.049, allocations: 85 kB / 0.8542 GB, free: 34.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/1.049, allocations: 180 kB / 0.8544 GB, free: 34.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01192/1.061, allocations: 4.543 MB / 0.8588 GB, free: 30.08 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006366/1.068, allocations: 2.136 MB / 0.8609 GB, free: 27.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02849/1.096, allocations: 25.37 MB / 0.8857 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00664/1.103, allocations: 0.5383 MB / 0.8862 GB, free: 1.766 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.104, allocations: 0.5312 MB / 0.8868 GB, free: 1.234 MB / 0.5606 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 (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,44,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004972/1.109, allocations: 3.124 MB / 0.8898 GB, free: 14.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001112/1.11, allocations: 0.5669 MB / 0.8904 GB, free: 13.52 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02158/1.132, allocations: 10.72 MB / 0.9008 GB, free: 2.742 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.155e-05/1.132, allocations: 36 kB / 0.9009 GB, free: 2.707 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.412e-05/1.132, allocations: 20 kB / 0.9009 GB, free: 2.688 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.4e-05/1.132, allocations: 19.92 kB / 0.9009 GB, free: 2.668 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03863/1.171, allocations: 20.36 MB / 0.9208 GB, free: 14.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.314e-05/1.171, allocations: 7.922 kB / 0.9208 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/1.173, allocations: 0.5382 MB / 0.9213 GB, free: 13.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01256/1.186, allocations: 4.184 MB / 0.9254 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005944/1.187, allocations: 63.98 kB / 0.9255 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03118/1.218, allocations: 23.13 MB / 0.948 GB, free: 2.055 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.218, allocations: 0 / 0.948 GB, free: 2.055 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2362/1.454, allocations: 15.65 MB / 0.9633 GB, free: 201 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/1.455, allocations: 0.5839 MB / 0.9639 GB, free: 200.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009454/1.456, allocations: 60.44 kB / 0.964 GB, free: 200.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002589/1.459, allocations: 226 kB / 0.9642 GB, free: 200.8 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006622/1.46, allocations: 223.3 kB / 0.9644 GB, free: 200.8 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000274/1.46, allocations: 99.59 kB / 0.9645 GB, free: 200.8 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.004463/1.464, allocations: 3.766 MB / 0.9682 GB, free: 199.5 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.1e-07/1.464, allocations: 0 / 0.9682 GB, free: 199.5 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00684/1.471, allocations: 1.906 MB / 0.97 GB, free: 199.3 MB / 0.6231 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 (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.0005281/1.472, allocations: 216.7 kB / 0.9702 GB, free: 199.2 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01256/1.484, allocations: 10.54 MB / 0.9805 GB, free: 195.3 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.484, allocations: 3.906 kB / 0.9805 GB, free: 195.3 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004814/1.489, allocations: 4.128 MB / 0.9846 GB, free: 193.6 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003586/1.493, allocations: 0.7798 MB / 0.9853 GB, free: 193.2 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02101/1.514, allocations: 16.84 MB / 1.002 GB, free: 178.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004764/1.519, allocations: 4.826 MB / 1.006 GB, free: 174.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001528/1.52, allocations: 447.2 kB / 1.007 GB, free: 174 MB / 0.6231 GB Notification: Performance of SimCode: time 6.72e-07/1.52, allocations: 0 / 1.007 GB, free: 174 MB / 0.6231 GB Notification: Performance of Templates: time 0.1434/1.663, allocations: 153.9 MB / 1.157 GB, free: 20.27 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches