Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 96.14 kB / 15.87 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002147/0.002146, allocations: 198.3 kB / 16.79 MB, free: 6.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.581/1.581, allocations: 205.1 MB / 222.6 MB, free: 4.781 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.334/0.334, allocations: 43.5 MB / 313.5 MB, free: 8.531 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001434, allocations: 67.89 kB / 382 MB, free: 8.746 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1316, allocations: 57.79 MB / 439.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2528/0.3845, allocations: 34.85 MB / 474.7 MB, free: 30.03 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01995/0.4045, allocations: 7.944 MB / 482.6 MB, free: 25.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007845/0.4124, allocations: 152.8 kB / 482.8 MB, free: 25.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.416, allocations: 2.06 MB / 484.8 MB, free: 24.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.4196, allocations: 1.585 MB / 486.4 MB, free: 23.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001402/0.421, allocations: 0.6318 MB / 487 MB, free: 23.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004928/0.426, allocations: 5.452 MB / 492.5 MB, free: 21.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003267/0.4293, allocations: 2.582 MB / 495.1 MB, free: 21.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002151/0.4314, allocations: 1.18 MB / 496.3 MB, free: 20.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003019/0.4344, allocations: 1.995 MB / 498.2 MB, free: 19.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000841/0.4353, allocations: 185.5 kB / 498.4 MB, free: 19.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.4378, allocations: 1.169 MB / 499.6 MB, free: 19.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001837/0.4396, allocations: 1.615 MB / 0.4895 GB, free: 19.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001888/0.4415, allocations: 1.842 MB / 0.4913 GB, free: 17.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.4523, allocations: 5.943 MB / 0.4971 GB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.4524, allocations: 1.125 kB / 0.4971 GB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4524, allocations: 0 / 0.4971 GB, free: 15.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002455/0.4527, allocations: 0 / 0.4971 GB, free: 15.79 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.01456/0.4672, allocations: 4.225 MB / 0.5012 GB, free: 13.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.424e-05/0.4673, allocations: 8.594 kB / 0.5012 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01677/0.4841, allocations: 2.43 MB / 0.5036 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008082/0.4922, allocations: 2.45 MB / 0.506 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.4924, allocations: 191 kB / 0.5062 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/0.4941, allocations: 278.6 kB / 0.5064 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.5103, allocations: 8.579 MB / 0.5148 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.5105, allocations: 43.66 kB / 0.5148 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003642/0.5108, allocations: 123.9 kB / 0.515 GB, free: 3.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002267/0.5131, allocations: 1.743 MB / 0.5167 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01327/0.5264, allocations: 7.28 MB / 0.5238 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04635/0.5728, allocations: 34.18 MB / 0.5571 GB, free: 7.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009806/0.5826, allocations: 3.478 MB / 0.5605 GB, free: 3.895 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003699/0.5864, allocations: 1.721 MB / 0.5622 GB, free: 2.164 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01665/0.6031, allocations: 7.424 MB / 0.5695 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.924e-05/0.6031, allocations: 47.55 kB / 0.5695 GB, free: 10.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.709e-06/0.6032, allocations: 0 / 0.5695 GB, free: 10.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.07589/0.679, allocations: 19.63 MB / 0.5887 GB, free: 6.625 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.6792, allocations: 201.2 kB / 0.5889 GB, free: 6.387 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006864/0.6861, allocations: 3.751 MB / 0.5925 GB, free: 2.645 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004555/0.6866, allocations: 53.7 kB / 0.5926 GB, free: 2.586 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002643/0.6892, allocations: 2.814 MB / 0.5953 GB, free: 15.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/0.6904, allocations: 0.7173 MB / 0.596 GB, free: 15 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003026/0.6935, allocations: 1.202 MB / 0.5972 GB, free: 13.79 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.6936, allocations: 301.1 kB / 0.5975 GB, free: 13.49 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004199/0.6978, allocations: 2.202 MB / 0.5997 GB, free: 11.28 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006727/0.7046, allocations: 5.762 MB / 0.6053 GB, free: 3.746 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0118/0.7164, allocations: 8.584 MB / 0.6137 GB, free: 9.406 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001012/0.7165, allocations: 36 kB / 0.6137 GB, free: 9.371 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01946/0.736, allocations: 9.182 MB / 0.6227 GB, free: 180 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001381/0.7362, allocations: 60 kB / 0.6227 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002107/0.7364, allocations: 124 kB / 0.6228 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006098/0.7425, allocations: 1.66 MB / 0.6245 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004459/0.747, allocations: 1.326 MB / 0.6258 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01565/0.7627, allocations: 9.254 MB / 0.6348 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005812/0.7685, allocations: 311.5 kB / 0.6351 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001472/0.77, allocations: 364 kB / 0.6354 GB, free: 2.953 MB / 0.4981 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.005147/0.7752, allocations: 1.9 MB / 0.6373 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.7762, allocations: 331.7 kB / 0.6376 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2276/1.004, allocations: 4.13 MB / 0.6416 GB, free: 158.2 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.184e-05/1.004, allocations: 24.75 kB / 0.6417 GB, free: 158.2 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.81e-05/1.004, allocations: 5.688 kB / 0.6417 GB, free: 158.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.935e-05/1.004, allocations: 12.73 kB / 0.6417 GB, free: 158.2 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02027/1.024, allocations: 8.541 MB / 0.65 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.36e-05/1.024, allocations: 0 / 0.65 GB, free: 156.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/1.026, allocations: 248.8 kB / 0.6503 GB, free: 156.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004738/1.03, allocations: 1.432 MB / 0.6517 GB, free: 155.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002617/1.031, allocations: 33.02 kB / 0.6517 GB, free: 155.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/1.041, allocations: 8.553 MB / 0.66 GB, free: 151.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/1.041, allocations: 3.062 kB / 0.66 GB, free: 151.9 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01182/1.053, allocations: 6.719 MB / 0.6666 GB, free: 149.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/1.055, allocations: 0.6258 MB / 0.6672 GB, free: 149.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001122/1.056, allocations: 26.34 kB / 0.6672 GB, free: 149.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/1.058, allocations: 84.16 kB / 0.6673 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004904/1.059, allocations: 113.8 kB / 0.6674 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/1.059, allocations: 53.7 kB / 0.6675 GB, free: 149.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005991/1.065, allocations: 2.333 MB / 0.6698 GB, free: 148.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.61e-07/1.065, allocations: 0 / 0.6698 GB, free: 148.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006964/1.072, allocations: 0.9994 MB / 0.6707 GB, free: 148.4 MB / 0.4981 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.0006125/1.073, allocations: 167.4 kB / 0.6709 GB, free: 148.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01053/1.083, allocations: 5.408 MB / 0.6762 GB, free: 146.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.083, allocations: 0 / 0.6762 GB, free: 146.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003001/1.086, allocations: 1.802 MB / 0.6779 GB, free: 145.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003037/1.089, allocations: 369.2 kB / 0.6783 GB, free: 145.6 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01691/1.106, allocations: 10.37 MB / 0.6884 GB, free: 140.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003095/1.109, allocations: 2.975 MB / 0.6913 GB, free: 139.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004248/1.114, allocations: 1.811 MB / 0.6931 GB, free: 138.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006089/1.114, allocations: 224.5 kB / 0.6933 GB, free: 138.9 MB / 0.4981 GB Notification: Performance of SimCode: time 1.012e-06/1.114, allocations: 4 kB / 0.6933 GB, free: 138.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.05742/1.172, allocations: 37.69 MB / 0.7301 GB, free: 103.1 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches