Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_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_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001265/0.001265, allocations: 116.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001308, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.224/0.224, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 75.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3554, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01146/0.3669, allocations: 10.35 MB / 0.5411 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008047/0.375, allocations: 3.882 MB / 0.5449 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.3767, allocations: 60.56 kB / 0.545 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003885/0.3806, allocations: 2.061 MB / 0.547 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004714/0.3854, allocations: 1.679 MB / 0.5486 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001671/0.387, allocations: 0.694 MB / 0.5493 GB, free: 14.97 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005626/0.3927, allocations: 3.996 MB / 0.5532 GB, free: 10.96 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003179/0.3959, allocations: 2.606 MB / 0.5557 GB, free: 8.312 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.3982, allocations: 1.304 MB / 0.557 GB, free: 7.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002596/0.4008, allocations: 1.838 MB / 0.5588 GB, free: 5.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006299/0.4014, allocations: 268 kB / 0.5591 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/0.4041, allocations: 1.166 MB / 0.5602 GB, free: 3.73 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001597/0.4057, allocations: 1.652 MB / 0.5618 GB, free: 2.074 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002486/0.4082, allocations: 1.883 MB / 0.5636 GB, free: 184 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00992/0.4181, allocations: 6.182 MB / 0.5697 GB, free: 9.973 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.4182, allocations: 0 / 0.5697 GB, free: 9.973 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.438e-06/0.4182, allocations: 0 / 0.5697 GB, free: 9.973 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002372/0.4185, allocations: 3.938 kB / 0.5697 GB, free: 9.969 MB / 430.1 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.0138/0.4323, allocations: 4.313 MB / 0.5739 GB, free: 5.582 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.4323, allocations: 12.03 kB / 0.5739 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01598/0.4483, allocations: 2.455 MB / 0.5763 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006828/0.4552, allocations: 2.41 MB / 0.5787 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002188/0.4555, allocations: 197.3 kB / 0.5789 GB, free: 452 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001018/0.4565, allocations: 279.9 kB / 0.5791 GB, free: 172 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01829/0.4748, allocations: 8.591 MB / 0.5875 GB, free: 6.945 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.475, allocations: 43.62 kB / 0.5875 GB, free: 6.902 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003566/0.4754, allocations: 127.9 kB / 0.5877 GB, free: 6.777 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003143/0.4785, allocations: 1.735 MB / 0.5894 GB, free: 5.039 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01543/0.494, allocations: 7.296 MB / 0.5965 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04183/0.5358, allocations: 34.08 MB / 0.6298 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009337/0.5452, allocations: 3.501 MB / 0.6332 GB, free: 6.926 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002395/0.5477, allocations: 1.713 MB / 0.6349 GB, free: 5.203 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.559, allocations: 7.532 MB / 0.6422 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.5591, allocations: 47.56 kB / 0.6423 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 5.1e-06/0.5591, allocations: 3.938 kB / 0.6423 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06664/0.6257, allocations: 19.82 MB / 0.6616 GB, free: 9.371 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.6259, allocations: 205.2 kB / 0.6618 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005502/0.6314, allocations: 3.743 MB / 0.6655 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003681/0.6318, allocations: 49.7 kB / 0.6655 GB, free: 5.34 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002173/0.634, allocations: 2.913 MB / 0.6684 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.635, allocations: 0.7521 MB / 0.6691 GB, free: 1.645 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001654/0.6367, allocations: 1.215 MB / 0.6703 GB, free: 428 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.6368, allocations: 301.1 kB / 0.6706 GB, free: 124 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003374/0.6402, allocations: 2.21 MB / 0.6727 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005923/0.6461, allocations: 5.774 MB / 0.6784 GB, free: 6.355 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/0.6572, allocations: 8.601 MB / 0.6868 GB, free: 12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001216/0.6574, allocations: 36 kB / 0.6868 GB, free: 11.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.0194/0.6768, allocations: 9.209 MB / 0.6958 GB, free: 2.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/0.6769, allocations: 56 kB / 0.6958 GB, free: 2.695 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002115/0.6772, allocations: 124 kB / 0.696 GB, free: 2.574 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005751/0.6829, allocations: 1.66 MB / 0.6976 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004564/0.6875, allocations: 1.326 MB / 0.6989 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0155/0.7031, allocations: 9.925 MB / 0.7086 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00532/0.7084, allocations: 327.6 kB / 0.7089 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001646/0.7101, allocations: 363.9 kB / 0.7092 GB, free: 4.828 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004273/0.7144, allocations: 1.892 MB / 0.7111 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.7154, allocations: 349.7 kB / 0.7114 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/0.7256, allocations: 4.149 MB / 0.7155 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.812e-05/0.7257, allocations: 20 kB / 0.7155 GB, free: 14.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.32e-05/0.7258, allocations: 8 kB / 0.7155 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.849e-05/0.7258, allocations: 11.97 kB / 0.7155 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01991/0.7457, allocations: 8.514 MB / 0.7238 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/0.7458, allocations: 0 / 0.7238 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.7471, allocations: 255.6 kB / 0.7241 GB, free: 5.547 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00536/0.7525, allocations: 1.429 MB / 0.7255 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003883/0.753, allocations: 32.45 kB / 0.7255 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3433/1.096, allocations: 9.212 MB / 0.7345 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/1.096, allocations: 2.281 kB / 0.7345 GB, free: 176 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/1.109, allocations: 6.757 MB / 0.7411 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/1.11, allocations: 401.8 kB / 0.7415 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004371/1.111, allocations: 28.38 kB / 0.7415 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/1.112, allocations: 99.3 kB / 0.7416 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003845/1.113, allocations: 109.2 kB / 0.7417 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/1.113, allocations: 49.16 kB / 0.7417 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003033/1.116, allocations: 2.316 MB / 0.744 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.7e-07/1.116, allocations: 2.781 kB / 0.744 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004234/1.12, allocations: 0.9793 MB / 0.745 GB, free: 172.6 MB / 0.5762 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0003812/1.12, allocations: 165.2 kB / 0.7451 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006693/1.127, allocations: 5.432 MB / 0.7504 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/1.127, allocations: 0 / 0.7504 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001973/1.129, allocations: 1.814 MB / 0.7522 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/1.131, allocations: 390.6 kB / 0.7526 GB, free: 169.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/1.143, allocations: 8.661 MB / 0.761 GB, free: 162.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002353/1.145, allocations: 2.963 MB / 0.7639 GB, free: 159.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003767/1.149, allocations: 1.805 MB / 0.7657 GB, free: 158 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004978/1.15, allocations: 223.4 kB / 0.7659 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of SimCode: time 8.12e-07/1.15, allocations: 4 kB / 0.7659 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.057/1.207, allocations: 36.07 MB / 0.8011 GB, free: 121.9 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches