Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 194.4 kB / 16.78 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 226.5 MB / 244.1 MB, free: 8.113 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000825/0.000825, allocations: 92.06 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2916/0.2916, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 12 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3063/0.3066, allocations: 62.96 MB / 0.5165 GB, free: 37.07 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4473, allocations: 115.4 MB / 0.6292 GB, free: 5.926 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.4475, allocations: 87.95 kB / 0.6293 GB, free: 5.84 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5762/1.024, allocations: 138.4 MB / 0.7644 GB, free: 79.24 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.587e-06/1.024, allocations: 0 / 0.7644 GB, free: 79.24 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004775/1.024, allocations: 136 kB / 0.7646 GB, free: 79.11 MB / 490.7 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.02283/1.047, allocations: 7.379 MB / 0.7718 GB, free: 71.64 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.729e-05/1.047, allocations: 8.031 kB / 0.7718 GB, free: 71.63 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03222/1.079, allocations: 5.849 MB / 0.7775 GB, free: 65.76 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/1.097, allocations: 7.494 MB / 0.7848 GB, free: 58.18 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004432/1.097, allocations: 493.2 kB / 0.7853 GB, free: 57.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002936/1.1, allocations: 0.6562 MB / 0.7859 GB, free: 57.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03296/1.133, allocations: 16.55 MB / 0.8021 GB, free: 39.04 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004476/1.134, allocations: 99.3 kB / 0.8022 GB, free: 38.94 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002447/1.136, allocations: 319.8 kB / 0.8025 GB, free: 38.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00216/1.138, allocations: 1.576 MB / 0.804 GB, free: 37.04 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02566/1.164, allocations: 13.51 MB / 0.8172 GB, free: 23.51 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.365/1.529, allocations: 74.12 MB / 0.8896 GB, free: 75.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02076/1.55, allocations: 7.691 MB / 0.8971 GB, free: 74.53 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004868/1.555, allocations: 3.955 MB / 0.901 GB, free: 74.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02676/1.582, allocations: 18.42 MB / 0.919 GB, free: 70.15 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.727e-05/1.582, allocations: 68.78 kB / 0.919 GB, free: 70.11 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 6.502e-06/1.582, allocations: 1.562 kB / 0.919 GB, free: 70.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.1626/1.744, allocations: 47.96 MB / 0.9659 GB, free: 60.67 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/1.745, allocations: 275 kB / 0.9661 GB, free: 60.38 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01279/1.757, allocations: 6.04 MB / 0.972 GB, free: 57.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008846/1.758, allocations: 81.7 kB / 0.9721 GB, free: 57.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.003218/1.762, allocations: 4.753 MB / 0.9768 GB, free: 53.49 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001712/1.763, allocations: 1.339 MB / 0.9781 GB, free: 52.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001246/1.765, allocations: 187.2 kB / 0.9782 GB, free: 52.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0008853/1.765, allocations: 0.6893 MB / 0.9789 GB, free: 51.54 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006045/1.772, allocations: 3.749 MB / 0.9826 GB, free: 48.38 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00788/1.779, allocations: 8.985 MB / 0.9914 GB, free: 37.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01369/1.793, allocations: 13.78 MB / 1.005 GB, free: 23.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/1.793, allocations: 52 kB / 1.005 GB, free: 23.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03349/1.827, allocations: 16.11 MB / 1.021 GB, free: 10 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/1.827, allocations: 87.61 kB / 1.021 GB, free: 9.922 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002361/1.827, allocations: 184 kB / 1.021 GB, free: 9.742 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01258/1.84, allocations: 4.046 MB / 1.025 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006681/1.847, allocations: 2.042 MB / 1.027 GB, free: 5.207 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03074/1.877, allocations: 21 MB / 1.047 GB, free: 80 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007743/1.885, allocations: 0.545 MB / 1.048 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001892/1.887, allocations: 0.5226 MB / 1.048 GB, free: 15.02 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * 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 (1081): * Single equations (assignments): 1076 * 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 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008679/1.896, allocations: 3.12 MB / 1.051 GB, free: 11.89 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/1.897, allocations: 0.5669 MB / 1.052 GB, free: 11.32 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02205/1.919, allocations: 9.546 MB / 1.061 GB, free: 1.711 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.447e-05/1.919, allocations: 43.94 kB / 1.061 GB, free: 1.668 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.533e-05/1.919, allocations: 16 kB / 1.061 GB, free: 1.652 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.477e-05/1.919, allocations: 19.64 kB / 1.061 GB, free: 1.637 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04216/1.962, allocations: 18.98 MB / 1.08 GB, free: 14.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.716e-05/1.962, allocations: 4 kB / 1.08 GB, free: 14.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00292/1.965, allocations: 0.4954 MB / 1.08 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01322/1.978, allocations: 3.676 MB / 1.084 GB, free: 10.37 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008867/1.979, allocations: 63.92 kB / 1.084 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02895/2.008, allocations: 18.9 MB / 1.102 GB, free: 7.137 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/2.008, allocations: 0 / 1.102 GB, free: 7.137 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3025/2.31, allocations: 13.94 MB / 1.116 GB, free: 184.7 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00157/2.312, allocations: 0.5807 MB / 1.117 GB, free: 184.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001236/2.313, allocations: 58.09 kB / 1.117 GB, free: 184.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002798/2.316, allocations: 231.6 kB / 1.117 GB, free: 184.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007461/2.317, allocations: 220.2 kB / 1.117 GB, free: 184.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002701/2.317, allocations: 92.94 kB / 1.117 GB, free: 184.6 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.006217/2.323, allocations: 3.768 MB / 1.121 GB, free: 184.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.41e-07/2.323, allocations: 3.531 kB / 1.121 GB, free: 184.4 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009129/2.332, allocations: 1.843 MB / 1.123 GB, free: 184.4 MB / 0.6042 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 (263): * Single equations (assignments): 258 * 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.0009035/2.333, allocations: 225.5 kB / 1.123 GB, free: 184.3 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01568/2.349, allocations: 9.562 MB / 1.132 GB, free: 183.9 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/2.349, allocations: 1.094 kB / 1.132 GB, free: 183.9 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.006495/2.356, allocations: 3.745 MB / 1.136 GB, free: 183.6 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00672/2.362, allocations: 0.7563 MB / 1.137 GB, free: 183.5 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03341/2.396, allocations: 19.1 MB / 1.155 GB, free: 176.8 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008571/2.404, allocations: 4.85 MB / 1.16 GB, free: 175.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001928/2.406, allocations: 444.8 kB / 1.16 GB, free: 175.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.463e-06/2.406, allocations: 0 / 1.16 GB, free: 175.2 MB / 0.6042 GB Notification: Performance of Templates: time 0.1878/2.594, allocations: 151.2 MB / 1.308 GB, free: 60.12 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches