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.0009613/0.0009613, allocations: 97.36 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2111/0.2111, allocations: 46.19 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002974, allocations: 8 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1364, allocations: 63.55 MB / 483.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03112/0.1676, allocations: 33.61 MB / 0.5046 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3081/0.4757, allocations: 7.801 MB / 0.5122 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007481/0.4832, allocations: 149.1 kB / 0.5123 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.4847, allocations: 379.7 kB / 0.5127 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006017/0.4908, allocations: 1.57 MB / 0.5142 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002037/0.4928, allocations: 0.6432 MB / 0.5149 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009256/0.5021, allocations: 5.713 MB / 0.5204 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005683/0.5078, allocations: 3.302 MB / 0.5237 GB, free: 8.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.5104, allocations: 1.022 MB / 0.5247 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003382/0.5138, allocations: 1.797 MB / 0.5264 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005585/0.5144, allocations: 123.3 kB / 0.5265 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002531/0.5169, allocations: 1.105 MB / 0.5276 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.5184, allocations: 1.505 MB / 0.5291 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002013/0.5205, allocations: 1.739 MB / 0.5308 GB, free: 5.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006513/0.527, allocations: 5.739 MB / 0.5364 GB, free: 1.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.527, allocations: 0 / 0.5364 GB, free: 1.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.527, allocations: 0 / 0.5364 GB, free: 1.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.00016/0.5272, allocations: 0 / 0.5364 GB, free: 1.555 MB / 382.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.00714/0.5343, allocations: 3.466 MB / 0.5398 GB, free: 15.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.5344, allocations: 13.94 kB / 0.5398 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01732/0.5517, allocations: 2.496 MB / 0.5422 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005477/0.5572, allocations: 2.357 MB / 0.5445 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.5574, allocations: 192.2 kB / 0.5447 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006342/0.5581, allocations: 274 kB / 0.545 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.5722, allocations: 8.627 MB / 0.5534 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001141/0.5723, allocations: 39.66 kB / 0.5534 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003414/0.5727, allocations: 127.9 kB / 0.5536 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0029/0.5756, allocations: 1.736 MB / 0.5553 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.5905, allocations: 7.327 MB / 0.5624 GB, free: 9.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0453/0.6358, allocations: 34.19 MB / 0.5958 GB, free: 6.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009594/0.6455, allocations: 3.537 MB / 0.5993 GB, free: 2.633 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002776/0.6483, allocations: 1.72 MB / 0.6009 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.6616, allocations: 7.519 MB / 0.6083 GB, free: 9.137 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.009e-05/0.6617, allocations: 51.55 kB / 0.6083 GB, free: 9.078 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 7.013e-06/0.6617, allocations: 7.922 kB / 0.6083 GB, free: 9.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06491/0.7266, allocations: 19.98 MB / 0.6279 GB, free: 4.941 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.7267, allocations: 205.2 kB / 0.628 GB, free: 4.699 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004757/0.7315, allocations: 3.726 MB / 0.6317 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.7317, allocations: 53.7 kB / 0.6317 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.7335, allocations: 2.801 MB / 0.6345 GB, free: 14.13 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006697/0.7342, allocations: 0.7165 MB / 0.6352 GB, free: 13.42 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005984/0.7348, allocations: 0.5141 MB / 0.6357 GB, free: 12.9 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.7349, allocations: 301.1 kB / 0.636 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003128/0.738, allocations: 2.217 MB / 0.6381 GB, free: 10.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005409/0.7434, allocations: 5.782 MB / 0.6438 GB, free: 2.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/0.7533, allocations: 8.617 MB / 0.6522 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.015e-05/0.7533, allocations: 36 kB / 0.6522 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01785/0.7712, allocations: 9.234 MB / 0.6612 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.659e-05/0.7713, allocations: 56 kB / 0.6613 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/0.7715, allocations: 128 kB / 0.6614 GB, free: 15 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006031/0.7775, allocations: 1.684 MB / 0.6631 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/0.7817, allocations: 1.329 MB / 0.6644 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01406/0.7958, allocations: 9.319 MB / 0.6735 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004425/0.8002, allocations: 323.5 kB / 0.6738 GB, free: 2.215 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007351/0.801, allocations: 364.4 kB / 0.6741 GB, free: 1.859 MB / 0.5137 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.003197/0.8042, allocations: 1.9 MB / 0.676 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006627/0.8049, allocations: 323.8 kB / 0.6763 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009805/0.8147, allocations: 4.188 MB / 0.6804 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.425e-05/0.8147, allocations: 23.98 kB / 0.6804 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.488e-05/0.8148, allocations: 11.94 kB / 0.6804 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.016e-05/0.8148, allocations: 15.91 kB / 0.6804 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01764/0.8324, allocations: 8.592 MB / 0.6888 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.8325, allocations: 0 / 0.6888 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.8337, allocations: 255.6 kB / 0.6891 GB, free: 2.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005745/0.8395, allocations: 1.456 MB / 0.6905 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001447/0.8396, allocations: 34.41 kB / 0.6905 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01308/0.8527, allocations: 8.601 MB / 0.6989 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.8528, allocations: 0 / 0.6989 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01288/0.8656, allocations: 6.79 MB / 0.7055 GB, free: 1.477 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.8667, allocations: 388.6 kB / 0.7059 GB, free: 1.074 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000363/0.8671, allocations: 31.94 kB / 0.7059 GB, free: 1.043 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001382/0.8685, allocations: 99.88 kB / 0.706 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.8688, allocations: 109.2 kB / 0.7061 GB, free: 0.8398 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.869, allocations: 55.92 kB / 0.7062 GB, free: 0.7852 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.3036/1.173, allocations: 2.317 MB / 0.7085 GB, free: 192.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.082e-06/1.173, allocations: 1.25 kB / 0.7085 GB, free: 192.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007092/1.18, allocations: 0.9802 MB / 0.7094 GB, free: 192.4 MB / 0.545 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.0005106/1.18, allocations: 157.5 kB / 0.7096 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.191, allocations: 5.429 MB / 0.7149 GB, free: 191.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.191, allocations: 0 / 0.7149 GB, free: 191.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003302/1.194, allocations: 1.817 MB / 0.7166 GB, free: 190.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/1.197, allocations: 368.2 kB / 0.717 GB, free: 190.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/1.216, allocations: 10.44 MB / 0.7272 GB, free: 185.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004001/1.22, allocations: 2.963 MB / 0.7301 GB, free: 184.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004409/1.225, allocations: 1.814 MB / 0.7319 GB, free: 184.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005845/1.225, allocations: 223.3 kB / 0.7321 GB, free: 184.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.573e-06/1.225, allocations: 0 / 0.7321 GB, free: 184.1 MB / 0.545 GB Notification: Performance of Templates: time 0.06527/1.291, allocations: 36.96 MB / 0.7682 GB, free: 157.1 MB / 0.545 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