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.001603/0.001603, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001993/0.001993, allocations: 212.1 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2137/0.2137, allocations: 46.1 MB / 344.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 77.22 kB / 418.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1154, allocations: 62.43 MB / 480.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01174/0.1272, allocations: 10.34 MB / 491 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008053/0.1353, allocations: 3.899 MB / 494.9 MB, free: 6.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00189/0.1373, allocations: 59.81 kB / 495 MB, free: 6.938 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004641/0.142, allocations: 2.063 MB / 497.1 MB, free: 4.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0049/0.1469, allocations: 1.669 MB / 498.7 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00192/0.1489, allocations: 0.7017 MB / 499.4 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005969/0.1548, allocations: 3.993 MB / 0.4916 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004079/0.159, allocations: 2.602 MB / 0.4942 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002636/0.1617, allocations: 1.304 MB / 0.4954 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002933/0.1646, allocations: 1.842 MB / 0.4972 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001121/0.1658, allocations: 264 kB / 0.4975 GB, free: 8.418 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002844/0.1686, allocations: 1.174 MB / 0.4986 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002399/0.1711, allocations: 1.648 MB / 0.5002 GB, free: 5.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003552/0.1746, allocations: 1.875 MB / 0.5021 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2227/0.3974, allocations: 5.934 MB / 0.5079 GB, free: 20.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.035e-05/0.3975, allocations: 0.75 kB / 0.5079 GB, free: 20.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3975, allocations: 0 / 0.5079 GB, free: 20.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002471/0.3977, allocations: 0 / 0.5079 GB, free: 20.11 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.01287/0.4106, allocations: 4.199 MB / 0.512 GB, free: 18.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.4107, allocations: 11.22 kB / 0.512 GB, free: 18.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01793/0.4286, allocations: 2.429 MB / 0.5143 GB, free: 18.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006864/0.4356, allocations: 2.368 MB / 0.5167 GB, free: 17.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/0.4358, allocations: 195.4 kB / 0.5168 GB, free: 17.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/0.4376, allocations: 277.4 kB / 0.5171 GB, free: 17.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01667/0.4543, allocations: 8.592 MB / 0.5255 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001327/0.4545, allocations: 36.78 kB / 0.5255 GB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004298/0.4549, allocations: 123.6 kB / 0.5257 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002823/0.4577, allocations: 1.744 MB / 0.5274 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01385/0.4716, allocations: 7.292 MB / 0.5345 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04101/0.5127, allocations: 34.16 MB / 0.5678 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009349/0.5221, allocations: 3.501 MB / 0.5713 GB, free: 7.531 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002626/0.5247, allocations: 1.715 MB / 0.5729 GB, free: 5.809 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01338/0.5381, allocations: 7.523 MB / 0.5803 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.396e-05/0.5382, allocations: 55.55 kB / 0.5803 GB, free: 14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=151): time 4.599e-06/0.5383, allocations: 0 / 0.5803 GB, free: 14 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.06884/0.6071, allocations: 19.62 MB / 0.5995 GB, free: 10.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.6073, allocations: 204.3 kB / 0.5997 GB, free: 10.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006863/0.6141, allocations: 3.725 MB / 0.6033 GB, free: 6.355 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004558/0.6146, allocations: 57.7 kB / 0.6034 GB, free: 6.293 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/0.6168, allocations: 2.803 MB / 0.6061 GB, free: 3.512 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/0.618, allocations: 0.7175 MB / 0.6068 GB, free: 2.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003041/0.621, allocations: 1.202 MB / 0.608 GB, free: 1.586 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.384e-05/0.6212, allocations: 302.4 kB / 0.6083 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004117/0.6253, allocations: 2.206 MB / 0.6104 GB, free: 15.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006484/0.6318, allocations: 5.774 MB / 0.6161 GB, free: 7.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/0.6429, allocations: 8.604 MB / 0.6245 GB, free: 13.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001301/0.6431, allocations: 39.84 kB / 0.6245 GB, free: 13.71 MB / 478.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02081/0.6639, allocations: 9.193 MB / 0.6335 GB, free: 4.719 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.6641, allocations: 56 kB / 0.6335 GB, free: 4.664 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002004/0.6643, allocations: 124 kB / 0.6337 GB, free: 4.543 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005889/0.6702, allocations: 1.665 MB / 0.6353 GB, free: 2.875 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004539/0.6748, allocations: 1.329 MB / 0.6366 GB, free: 1.543 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/0.6897, allocations: 9.925 MB / 0.6463 GB, free: 7.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004709/0.6945, allocations: 311.6 kB / 0.6466 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001286/0.6958, allocations: 367 kB / 0.6469 GB, free: 6.82 MB / 494.1 MB 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.004318/0.7001, allocations: 1.892 MB / 0.6488 GB, free: 4.914 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009578/0.7011, allocations: 331.6 kB / 0.6491 GB, free: 4.586 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01019/0.7113, allocations: 4.137 MB / 0.6531 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-05/0.7114, allocations: 23.94 kB / 0.6531 GB, free: 416 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.232e-05/0.7114, allocations: 8 kB / 0.6532 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.72e-05/0.7115, allocations: 15.8 kB / 0.6532 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02119/0.7327, allocations: 8.55 MB / 0.6615 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-05/0.7328, allocations: 0 / 0.6615 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/0.7342, allocations: 255.6 kB / 0.6618 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005426/0.7396, allocations: 1.432 MB / 0.6632 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000353/0.74, allocations: 31.98 kB / 0.6632 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/0.7536, allocations: 9.215 MB / 0.6722 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.7537, allocations: 0 / 0.6722 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01316/0.7669, allocations: 6.747 MB / 0.6788 GB, free: 5.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.768, allocations: 372.7 kB / 0.6791 GB, free: 5.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009917/0.769, allocations: 31.94 kB / 0.6792 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002028/0.7711, allocations: 91.88 kB / 0.6793 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004872/0.7716, allocations: 109.2 kB / 0.6794 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000232/0.7718, allocations: 58.25 kB / 0.6794 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004432/0.7762, allocations: 2.311 MB / 0.6817 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.81e-07/0.7763, allocations: 6.625 kB / 0.6817 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006143/0.7824, allocations: 0.9727 MB / 0.6826 GB, free: 2.039 MB / 0.5137 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.0007038/0.7832, allocations: 162.7 kB / 0.6828 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01139/0.7946, allocations: 6.352 MB / 0.689 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.7946, allocations: 0 / 0.689 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00309/0.7977, allocations: 1.807 MB / 0.6908 GB, free: 9.727 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003444/0.8012, allocations: 383.7 kB / 0.6911 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/0.8194, allocations: 9.017 MB / 0.6999 GB, free: 304 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004604/0.8241, allocations: 2.955 MB / 0.7028 GB, free: 13.31 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001056/0.8252, allocations: 263.4 kB / 0.7031 GB, free: 13.05 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.8252, allocations: 0 / 0.7031 GB, free: 13.05 MB / 0.545 GB Notification: Performance of Templates: time 0.3138/1.139, allocations: 69 MB / 0.7704 GB, free: 155.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches