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.001066/0.001066, allocations: 117.7 kB / 17.78 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 203.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.213/0.213, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 75.88 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3621, 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.01303/0.3752, allocations: 10.35 MB / 0.5411 GB, free: 5.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.3857, allocations: 3.886 MB / 0.5449 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002235/0.3879, allocations: 60.78 kB / 0.545 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004519/0.3925, allocations: 2.073 MB / 0.547 GB, free: 1.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006601/0.3992, allocations: 1.673 MB / 0.5486 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002057/0.4012, allocations: 0.6862 MB / 0.5493 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006456/0.4077, allocations: 4 MB / 0.5532 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003347/0.4111, allocations: 2.597 MB / 0.5557 GB, free: 8.301 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.4132, allocations: 1.3 MB / 0.557 GB, free: 6.996 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00231/0.4155, allocations: 1.842 MB / 0.5588 GB, free: 5.148 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000499/0.416, allocations: 264 kB / 0.559 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001996/0.4181, allocations: 1.186 MB / 0.5602 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.4195, allocations: 1.675 MB / 0.5618 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001694/0.4212, allocations: 1.883 MB / 0.5637 GB, free: 132 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006028/0.4272, allocations: 6.157 MB / 0.5697 GB, free: 9.953 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.4273, allocations: 4 kB / 0.5697 GB, free: 9.949 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4273, allocations: 3.938 kB / 0.5697 GB, free: 9.945 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.123e-05/0.4274, allocations: 0 / 0.5697 GB, free: 9.945 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.007409/0.4348, allocations: 4.202 MB / 0.5738 GB, free: 5.676 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.4348, allocations: 12.03 kB / 0.5738 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01652/0.4514, allocations: 2.429 MB / 0.5762 GB, free: 3.227 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006032/0.4574, allocations: 2.398 MB / 0.5785 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.4576, allocations: 197.3 kB / 0.5787 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007811/0.4584, allocations: 283.7 kB / 0.579 GB, free: 300 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01306/0.4715, allocations: 8.591 MB / 0.5874 GB, free: 7.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.001e-05/0.4716, allocations: 35.66 kB / 0.5874 GB, free: 7.035 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003089/0.4719, allocations: 123.9 kB / 0.5875 GB, free: 6.914 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002581/0.4745, allocations: 1.743 MB / 0.5892 GB, free: 5.168 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.4866, allocations: 7.296 MB / 0.5964 GB, free: 13.86 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03674/0.5234, allocations: 34.02 MB / 0.6296 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008507/0.532, allocations: 3.498 MB / 0.633 GB, free: 7.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002085/0.5341, allocations: 1.713 MB / 0.6347 GB, free: 5.387 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.5452, allocations: 7.507 MB / 0.642 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/0.5453, allocations: 59.38 kB / 0.6421 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.939e-06/0.5453, allocations: 0 / 0.6421 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06004/0.6053, allocations: 19.62 MB / 0.6612 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.782e-05/0.6055, allocations: 197.2 kB / 0.6614 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004728/0.6102, allocations: 3.734 MB / 0.665 GB, free: 5.789 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002893/0.6105, allocations: 49.7 kB / 0.6651 GB, free: 5.734 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001832/0.6124, allocations: 2.802 MB / 0.6678 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007682/0.6131, allocations: 0.7135 MB / 0.6685 GB, free: 2.172 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001445/0.6146, allocations: 1.21 MB / 0.6697 GB, free: 0.9492 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.363e-05/0.6147, allocations: 301.1 kB / 0.67 GB, free: 0.6523 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/0.6177, allocations: 2.21 MB / 0.6722 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005025/0.6227, allocations: 5.774 MB / 0.6778 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009313/0.6321, allocations: 8.603 MB / 0.6862 GB, free: 12.53 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-05/0.6322, allocations: 36 kB / 0.6862 GB, free: 12.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01927/0.6515, allocations: 9.189 MB / 0.6952 GB, free: 3.293 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001956/0.6517, allocations: 62.28 kB / 0.6953 GB, free: 3.234 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002757/0.652, allocations: 124 kB / 0.6954 GB, free: 3.113 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005851/0.6579, allocations: 1.661 MB / 0.697 GB, free: 1.453 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/0.6631, allocations: 1.329 MB / 0.6983 GB, free: 124 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01645/0.6796, allocations: 9.925 MB / 0.708 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005613/0.6853, allocations: 323.5 kB / 0.7083 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/0.6865, allocations: 364 kB / 0.7086 GB, free: 5.371 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.004673/0.6912, allocations: 1.888 MB / 0.7105 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/0.6923, allocations: 331.8 kB / 0.7108 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009924/0.7022, allocations: 4.141 MB / 0.7148 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.777e-05/0.7023, allocations: 20 kB / 0.7149 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.256e-05/0.7023, allocations: 8 kB / 0.7149 GB, free: 14.96 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-05/0.7024, allocations: 11.97 kB / 0.7149 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02077/0.7231, allocations: 8.534 MB / 0.7232 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-05/0.7232, allocations: 0 / 0.7232 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.7246, allocations: 247.6 kB / 0.7235 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005237/0.7298, allocations: 1.429 MB / 0.7249 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003283/0.7302, allocations: 28 kB / 0.7249 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3351/1.065, allocations: 9.206 MB / 0.7339 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.065, allocations: 5.375 kB / 0.7339 GB, free: 176.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/1.079, allocations: 6.744 MB / 0.7405 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/1.081, allocations: 374.4 kB / 0.7408 GB, free: 173.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004704/1.081, allocations: 31.47 kB / 0.7408 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001405/1.082, allocations: 90.64 kB / 0.7409 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004273/1.083, allocations: 109.9 kB / 0.741 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.083, allocations: 55.78 kB / 0.7411 GB, free: 173.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003151/1.086, allocations: 2.317 MB / 0.7434 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.61e-07/1.086, allocations: 0 / 0.7434 GB, free: 172.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00433/1.091, allocations: 0.9813 MB / 0.7443 GB, free: 172.8 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.0004705/1.091, allocations: 156.6 kB / 0.7445 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007204/1.098, allocations: 5.434 MB / 0.7498 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/1.098, allocations: 0 / 0.7498 GB, free: 170.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002037/1.1, allocations: 1.807 MB / 0.7515 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/1.103, allocations: 390.9 kB / 0.7519 GB, free: 169.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/1.114, allocations: 8.538 MB / 0.7602 GB, free: 163.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/1.117, allocations: 2.967 MB / 0.7631 GB, free: 160.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003209/1.12, allocations: 1.816 MB / 0.7649 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004752/1.12, allocations: 219.4 kB / 0.7651 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.643e-06/1.12, allocations: 0 / 0.7651 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.05638/1.177, allocations: 36 MB / 0.8003 GB, free: 122.8 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