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.00169/0.00169, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002104/0.002104, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.05/2.05, allocations: 227.4 MB / 246.9 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3563/0.3563, allocations: 46.11 MB / 344.3 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 76.41 kB / 417.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1991, allocations: 62.45 MB / 479.9 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.05912/0.2583, allocations: 34.61 MB / 0.5025 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.4979/0.7563, allocations: 7.878 MB / 0.5102 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01401/0.7704, allocations: 150 kB / 0.5103 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008102/0.7786, allocations: 2.05 MB / 0.5123 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009037/0.7877, allocations: 1.554 MB / 0.5138 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.7913, allocations: 0.6444 MB / 0.5145 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01551/0.8068, allocations: 5.71 MB / 0.52 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006021/0.8129, allocations: 2.576 MB / 0.5226 GB, free: 8.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003125/0.8161, allocations: 1.171 MB / 0.5237 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004083/0.8202, allocations: 1.98 MB / 0.5256 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008204/0.821, allocations: 185.3 kB / 0.5258 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00293/0.824, allocations: 1.164 MB / 0.527 GB, free: 7.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001993/0.826, allocations: 1.592 MB / 0.5285 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00244/0.8284, allocations: 1.824 MB / 0.5303 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005954/0.8344, allocations: 4.758 MB / 0.5349 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.8344, allocations: 0 / 0.5349 GB, free: 1.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.8344, allocations: 0 / 0.5349 GB, free: 1.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002458/0.8347, allocations: 0 / 0.5349 GB, free: 1.863 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.01318/0.8479, allocations: 4.205 MB / 0.539 GB, free: 15.01 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.39e-05/0.848, allocations: 15.91 kB / 0.5391 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02001/0.868, allocations: 2.43 MB / 0.5414 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008049/0.8761, allocations: 2.353 MB / 0.5437 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002024/0.8764, allocations: 201.3 kB / 0.5439 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.8777, allocations: 273.8 kB / 0.5442 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0188/0.8966, allocations: 8.592 MB / 0.5526 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001505/0.8968, allocations: 55.52 kB / 0.5526 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000463/0.8972, allocations: 121.4 kB / 0.5527 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003078/0.9003, allocations: 1.739 MB / 0.5544 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.9175, allocations: 7.288 MB / 0.5616 GB, free: 8.957 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06208/0.9796, allocations: 34.18 MB / 0.5949 GB, free: 5.867 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01391/0.9936, allocations: 3.486 MB / 0.5983 GB, free: 2.234 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002915/0.9966, allocations: 1.713 MB / 0.6 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01452/1.011, allocations: 7.515 MB / 0.6073 GB, free: 8.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.607e-05/1.011, allocations: 63.48 kB / 0.6074 GB, free: 8.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 6.562e-06/1.011, allocations: 4 kB / 0.6074 GB, free: 8.676 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.08964/1.101, allocations: 19.59 MB / 0.6265 GB, free: 4.938 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/1.101, allocations: 201.2 kB / 0.6267 GB, free: 4.699 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009966/1.111, allocations: 3.73 MB / 0.6304 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008431/1.112, allocations: 49.7 kB / 0.6304 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003852/1.116, allocations: 2.814 MB / 0.6332 GB, free: 14.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.118, allocations: 0.7116 MB / 0.6339 GB, free: 13.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002854/1.12, allocations: 1.201 MB / 0.635 GB, free: 12.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/1.121, allocations: 305.4 kB / 0.6353 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003848/1.124, allocations: 2.21 MB / 0.6375 GB, free: 9.684 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007826/1.132, allocations: 5.774 MB / 0.6431 GB, free: 2.133 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/1.145, allocations: 8.609 MB / 0.6515 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000173/1.146, allocations: 36 kB / 0.6516 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02797/1.173, allocations: 9.181 MB / 0.6605 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002776/1.174, allocations: 64.03 kB / 0.6606 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003638/1.174, allocations: 124 kB / 0.6607 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007058/1.181, allocations: 1.66 MB / 0.6623 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005403/1.187, allocations: 1.322 MB / 0.6636 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02365/1.21, allocations: 9.256 MB / 0.6727 GB, free: 1.992 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009439/1.22, allocations: 319.5 kB / 0.673 GB, free: 1.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002079/1.222, allocations: 360 kB / 0.6733 GB, free: 1.328 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.008041/1.23, allocations: 1.904 MB / 0.6752 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001753/1.232, allocations: 335.7 kB / 0.6755 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01878/1.251, allocations: 4.137 MB / 0.6795 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/1.251, allocations: 24 kB / 0.6796 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.075e-05/1.251, allocations: 8 kB / 0.6796 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.945e-05/1.251, allocations: 11.97 kB / 0.6796 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03083/1.282, allocations: 8.545 MB / 0.6879 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.575e-05/1.282, allocations: 4 kB / 0.6879 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00248/1.285, allocations: 255.6 kB / 0.6882 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009775/1.294, allocations: 1.425 MB / 0.6896 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005464/1.295, allocations: 35.98 kB / 0.6896 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02312/1.318, allocations: 8.546 MB / 0.6979 GB, free: 7.918 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.318, allocations: 0 / 0.6979 GB, free: 7.918 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02092/1.339, allocations: 6.742 MB / 0.7045 GB, free: 1.152 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/1.341, allocations: 372.7 kB / 0.7049 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009641/1.342, allocations: 32 kB / 0.7049 GB, free: 0.7344 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002694/1.345, allocations: 91.88 kB / 0.705 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007398/1.345, allocations: 109.2 kB / 0.7051 GB, free: 0.5391 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/1.346, allocations: 55.98 kB / 0.7052 GB, free: 496 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.4118/1.757, allocations: 2.314 MB / 0.7074 GB, free: 193.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.192e-06/1.757, allocations: 0 / 0.7074 GB, free: 193.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01009/1.768, allocations: 0.9794 MB / 0.7084 GB, free: 193.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.0008579/1.768, allocations: 161.3 kB / 0.7085 GB, free: 193.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01705/1.786, allocations: 5.415 MB / 0.7138 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.398e-05/1.786, allocations: 0.5625 kB / 0.7138 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005631/1.791, allocations: 1.811 MB / 0.7156 GB, free: 191.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006994/1.798, allocations: 366.8 kB / 0.7159 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03417/1.833, allocations: 10.73 MB / 0.7264 GB, free: 185.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007017/1.84, allocations: 2.958 MB / 0.7293 GB, free: 184.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/1.841, allocations: 265.3 kB / 0.7296 GB, free: 184.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.643e-06/1.841, allocations: 0 / 0.7296 GB, free: 184.7 MB / 0.545 GB Notification: Performance of Templates: time 0.1258/1.967, allocations: 69 MB / 0.7969 GB, free: 127.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/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