Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001288, allocations: 193.5 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 226.5 MB / 244.1 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008298/0.0008298, allocations: 92.83 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.3032/0.3032, allocations: 44.82 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.0002911, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3036, allocations: 62.94 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.4392, allocations: 109.5 MB / 0.6234 GB, free: 11.86 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.4395, allocations: 83.91 kB / 0.6234 GB, free: 11.78 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4131/0.8526, allocations: 77.04 MB / 0.6987 GB, free: 101.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.8526, allocations: 0 / 0.6987 GB, free: 101.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002079/0.8529, allocations: 67.88 kB / 0.6987 GB, free: 101.4 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01123/0.8641, allocations: 3.764 MB / 0.7024 GB, free: 99.69 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.8642, allocations: 10.91 kB / 0.7024 GB, free: 99.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01451/0.8787, allocations: 3.51 MB / 0.7059 GB, free: 99.42 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008396/0.8871, allocations: 3.174 MB / 0.709 GB, free: 98.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/0.8875, allocations: 276.3 kB / 0.7092 GB, free: 98.82 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001961/0.8895, allocations: 365.5 kB / 0.7096 GB, free: 98.81 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02032/0.9098, allocations: 9.114 MB / 0.7185 GB, free: 95.32 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003217/0.9102, allocations: 60.5 kB / 0.7185 GB, free: 95.28 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001407/0.9116, allocations: 186.9 kB / 0.7187 GB, free: 95.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00158/0.9132, allocations: 0.8875 MB / 0.7196 GB, free: 95.02 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01338/0.9266, allocations: 7.246 MB / 0.7266 GB, free: 92.73 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03926/0.9659, allocations: 44.11 MB / 0.7697 GB, free: 57.88 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007703/0.9737, allocations: 3.5 MB / 0.7731 GB, free: 56.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.9755, allocations: 1.606 MB / 0.7747 GB, free: 55.77 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009738/0.9853, allocations: 7.135 MB / 0.7817 GB, free: 51.75 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.86e-05/0.9853, allocations: 50.72 kB / 0.7817 GB, free: 51.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=151): time 4.789e-06/0.9854, allocations: 0 / 0.7817 GB, free: 51.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=188): time 0.05596/1.041, allocations: 19.08 MB / 0.8004 GB, free: 37.46 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/1.041, allocations: 209.2 kB / 0.8006 GB, free: 37.21 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005131/1.047, allocations: 3.701 MB / 0.8042 GB, free: 33.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002771/1.047, allocations: 57.7 kB / 0.8042 GB, free: 33.45 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/1.048, allocations: 2.837 MB / 0.807 GB, free: 30.62 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/1.049, allocations: 0.7129 MB / 0.8077 GB, free: 29.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/1.049, allocations: 116 kB / 0.8078 GB, free: 29.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002879/1.05, allocations: 0.5539 MB / 0.8084 GB, free: 29.24 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002575/1.052, allocations: 1.983 MB / 0.8103 GB, free: 27.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003733/1.056, allocations: 5.556 MB / 0.8157 GB, free: 19.91 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006673/1.063, allocations: 8.21 MB / 0.8237 GB, free: 9.945 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.509e-05/1.063, allocations: 36 kB / 0.8238 GB, free: 9.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.01434/1.077, allocations: 8.56 MB / 0.8321 GB, free: 1.34 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001097/1.077, allocations: 62.81 kB / 0.8322 GB, free: 1.281 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001502/1.077, allocations: 124 kB / 0.8323 GB, free: 1.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005123/1.082, allocations: 1.481 MB / 0.8338 GB, free: 15.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004381/1.087, allocations: 1.287 MB / 0.835 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01264/1.099, allocations: 8.135 MB / 0.843 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004496/1.104, allocations: 307.5 kB / 0.8432 GB, free: 5.828 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001106/1.105, allocations: 356 kB / 0.8436 GB, free: 5.48 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (697): * Single equations (assignments): 693 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004108/1.109, allocations: 1.896 MB / 0.8454 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007539/1.11, allocations: 327.7 kB / 0.8458 GB, free: 3.246 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009474/1.12, allocations: 3.679 MB / 0.8493 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.571e-05/1.12, allocations: 20 kB / 0.8494 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.112e-05/1.12, allocations: 8 kB / 0.8494 GB, free: 15.54 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.218e-05/1.12, allocations: 7.969 kB / 0.8494 GB, free: 15.53 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01814/1.138, allocations: 7.953 MB / 0.8571 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.68e-05/1.138, allocations: 3.938 kB / 0.8571 GB, free: 7.547 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/1.139, allocations: 239.7 kB / 0.8574 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004856/1.144, allocations: 1.28 MB / 0.8586 GB, free: 6.031 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002411/1.144, allocations: 35.92 kB / 0.8587 GB, free: 5.996 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01178/1.156, allocations: 7.4 MB / 0.8659 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.156, allocations: 4.031 kB / 0.8659 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/1.168, allocations: 6.046 MB / 0.8718 GB, free: 8.398 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009906/1.169, allocations: 380.7 kB / 0.8722 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007137/1.17, allocations: 24 kB / 0.8722 GB, free: 7.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.171, allocations: 91.95 kB / 0.8723 GB, free: 7.891 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003565/1.172, allocations: 113 kB / 0.8724 GB, free: 7.777 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001502/1.172, allocations: 51.98 kB / 0.8724 GB, free: 7.727 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005026/1.177, allocations: 2.293 MB / 0.8747 GB, free: 5.449 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2e-07/1.177, allocations: 4 kB / 0.8747 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005442/1.182, allocations: 0.9765 MB / 0.8756 GB, free: 4.469 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005556/1.183, allocations: 178.4 kB / 0.8758 GB, free: 4.289 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.2323/1.415, allocations: 4.956 MB / 0.8806 GB, free: 135 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/1.415, allocations: 0.5625 kB / 0.8806 GB, free: 135 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002832/1.418, allocations: 1.618 MB / 0.8822 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002679/1.421, allocations: 385.2 kB / 0.8826 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/1.435, allocations: 10.18 MB / 0.8925 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002949/1.438, allocations: 2.972 MB / 0.8954 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000946/1.438, allocations: 264.2 kB / 0.8957 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of SimCode: time 9.01e-07/1.438, allocations: 0.5938 kB / 0.8957 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.09075/1.529, allocations: 68.69 MB / 0.9628 GB, free: 109.4 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches