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.0009899/0.0009899, allocations: 98.23 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001565/0.001565, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2217/0.2217, allocations: 46.19 MB / 344.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004281/0.0004285, allocations: 11.98 kB / 418.8 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1586, allocations: 63.56 MB / 482.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.4015/0.5601, allocations: 65.91 MB / 0.5355 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04002/0.6002, allocations: 13.81 MB / 0.5489 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01762/0.6179, allocations: 321 kB / 0.5492 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01488/0.6328, allocations: 3.417 MB / 0.5526 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03055/0.6634, allocations: 10.02 MB / 0.5624 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005825/0.6692, allocations: 1.286 MB / 0.5636 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.08652/0.7558, allocations: 64.66 MB / 0.6268 GB, free: 3.117 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01247/0.7683, allocations: 6.367 MB / 0.633 GB, free: 12.69 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006049/0.7744, allocations: 2.238 MB / 0.6352 GB, free: 10.44 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007071/0.7815, allocations: 3.646 MB / 0.6387 GB, free: 6.785 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002126/0.7837, allocations: 244 kB / 0.639 GB, free: 6.547 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004426/0.7881, allocations: 1.194 MB / 0.6401 GB, free: 5.352 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004928/0.7931, allocations: 2.949 MB / 0.643 GB, free: 2.395 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003225/0.7963, allocations: 1.294 MB / 0.6443 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01189/0.8082, allocations: 8.444 MB / 0.6525 GB, free: 8.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.8083, allocations: 0 / 0.6525 GB, free: 8.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.8083, allocations: 0 / 0.6525 GB, free: 8.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0005351/0.8088, allocations: 0 / 0.6525 GB, free: 8.625 MB / 494.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.01782/0.8267, allocations: 6.877 MB / 0.6592 GB, free: 1.664 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.8267, allocations: 8.031 kB / 0.6593 GB, free: 1.656 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02513/0.8519, allocations: 3.762 MB / 0.6629 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/0.8654, allocations: 5.08 MB / 0.6679 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000428/0.8658, allocations: 369.5 kB / 0.6682 GB, free: 8.355 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002205/0.8681, allocations: 0.5151 MB / 0.6687 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03534/0.9034, allocations: 16.27 MB / 0.6846 GB, free: 6.5 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004218/0.9039, allocations: 75.36 kB / 0.6847 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002141/0.906, allocations: 231.8 kB / 0.6849 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005085/0.9111, allocations: 2.926 MB / 0.6878 GB, free: 3.27 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03191/0.9431, allocations: 13.71 MB / 0.7012 GB, free: 5.531 MB / 0.5294 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.3698/1.313, allocations: 64.7 MB / 0.7643 GB, free: 136.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02014/1.333, allocations: 7.945 MB / 0.7721 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00509/1.338, allocations: 4.267 MB / 0.7763 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02515/1.363, allocations: 19.36 MB / 0.7952 GB, free: 108.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.771e-05/1.364, allocations: 68.5 kB / 0.7952 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=284): time 6.452e-06/1.364, allocations: 0 / 0.7952 GB, free: 108.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=366): time 0.1589/1.522, allocations: 52.49 MB / 0.8465 GB, free: 56.16 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/1.523, allocations: 269.7 kB / 0.8468 GB, free: 55.84 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007803/1.53, allocations: 6.007 MB / 0.8526 GB, free: 49.82 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000997/1.531, allocations: 81.7 kB / 0.8527 GB, free: 49.74 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00268/1.534, allocations: 4.677 MB / 0.8573 GB, free: 45.06 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001889/1.536, allocations: 1.343 MB / 0.8586 GB, free: 43.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005881/1.537, allocations: 192 kB / 0.8588 GB, free: 43.54 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0004839/1.537, allocations: 0.7072 MB / 0.8595 GB, free: 42.83 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00548/1.543, allocations: 4.173 MB / 0.8635 GB, free: 38.65 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008034/1.551, allocations: 9.41 MB / 0.8727 GB, free: 26.69 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008843/1.559, allocations: 6.055 MB / 0.8786 GB, free: 20.62 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/1.56, allocations: 52 kB / 0.8787 GB, free: 20.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.03567/1.595, allocations: 17.52 MB / 0.8958 GB, free: 3.004 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003299/1.596, allocations: 91.94 kB / 0.8959 GB, free: 2.914 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004111/1.596, allocations: 188.6 kB / 0.8961 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01503/1.611, allocations: 4.677 MB / 0.9006 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008595/1.62, allocations: 2.121 MB / 0.9027 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3934/2.013, allocations: 23.71 MB / 0.9259 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009059/2.022, allocations: 0.5397 MB / 0.9264 GB, free: 174 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002263/2.025, allocations: 0.5374 MB / 0.9269 GB, free: 173.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 44,(3,88.9%) 49} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00772/2.032, allocations: 3.114 MB / 0.9299 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00139/2.034, allocations: 0.5607 MB / 0.9305 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02224/2.056, allocations: 10.74 MB / 0.941 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.018e-05/2.056, allocations: 42.19 kB / 0.941 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.721e-05/2.056, allocations: 18.34 kB / 0.941 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001222/2.056, allocations: 17.39 kB / 0.9411 GB, free: 169.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04339/2.1, allocations: 20.49 MB / 0.9611 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-05/2.1, allocations: 3.844 kB / 0.9611 GB, free: 161.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00286/2.103, allocations: 0.5337 MB / 0.9616 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01242/2.115, allocations: 4.271 MB / 0.9658 GB, free: 156.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009933/2.116, allocations: 63.98 kB / 0.9658 GB, free: 156.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0284/2.145, allocations: 21.57 MB / 0.9869 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/2.145, allocations: 4.734 kB / 0.9869 GB, free: 134.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0279/2.173, allocations: 15.62 MB / 1.002 GB, free: 119.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/2.175, allocations: 0.591 MB / 1.003 GB, free: 118.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001832/2.176, allocations: 59.95 kB / 1.003 GB, free: 118.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003762/2.18, allocations: 243.1 kB / 1.003 GB, free: 118.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001006/2.181, allocations: 218.2 kB / 1.003 GB, free: 118.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002818/2.182, allocations: 99.97 kB / 1.003 GB, free: 118 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005383/2.187, allocations: 3.73 MB / 1.007 GB, free: 114.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.352e-06/2.187, allocations: 0 / 1.007 GB, free: 114.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009522/2.196, allocations: 1.898 MB / 1.009 GB, free: 112.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006867/2.197, allocations: 212.1 kB / 1.009 GB, free: 112.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01456/2.212, allocations: 10.43 MB / 1.019 GB, free: 101.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/2.212, allocations: 4 kB / 1.019 GB, free: 101.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005261/2.217, allocations: 4.107 MB / 1.023 GB, free: 97.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0042/2.221, allocations: 0.7423 MB / 1.024 GB, free: 96.89 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02849/2.25, allocations: 18.92 MB / 1.042 GB, free: 78.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00547/2.255, allocations: 4.842 MB / 1.047 GB, free: 73.23 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006787/2.262, allocations: 2.769 MB / 1.05 GB, free: 70.45 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/2.263, allocations: 379.4 kB / 1.05 GB, free: 70.08 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/2.263, allocations: 0 / 1.05 GB, free: 70.08 MB / 0.545 GB Notification: Performance of Templates: time 0.4288/2.692, allocations: 78.26 MB / 1.127 GB, free: 167.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches