Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_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.001215/0.001215, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.00124, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 242.5 MB, free: 13.78 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2049/0.2049, allocations: 44.18 MB / 336.8 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 64.11 kB / 408.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1124, allocations: 60.84 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03263/0.1451, allocations: 34.83 MB / 0.4922 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01672/0.1619, allocations: 7.944 MB / 0.5 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006196/0.1681, allocations: 147.6 kB / 0.5001 GB, free: 3.758 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00457/0.1727, allocations: 2.053 MB / 0.5021 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004054/0.1768, allocations: 1.588 MB / 0.5037 GB, free: 108 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2098/0.3867, allocations: 0.6279 MB / 0.5043 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008385/0.3951, allocations: 5.691 MB / 0.5098 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004355/0.3995, allocations: 2.579 MB / 0.5123 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003013/0.4026, allocations: 1.174 MB / 0.5135 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003423/0.406, allocations: 1.993 MB / 0.5154 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001073/0.4071, allocations: 186.8 kB / 0.5156 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00306/0.4102, allocations: 1.178 MB / 0.5168 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002353/0.4126, allocations: 1.613 MB / 0.5183 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003609/0.4162, allocations: 1.836 MB / 0.5201 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005704/0.4219, allocations: 4.806 MB / 0.5248 GB, free: 8.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.819e-06/0.422, allocations: 3.984 kB / 0.5248 GB, free: 8.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.422, allocations: 0 / 0.5248 GB, free: 8.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002255/0.4222, allocations: 0 / 0.5248 GB, free: 8.859 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.01015/0.4324, allocations: 4.224 MB / 0.529 GB, free: 5.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.4324, allocations: 10.44 kB / 0.529 GB, free: 5.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0149/0.4473, allocations: 2.428 MB / 0.5313 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005842/0.4532, allocations: 2.394 MB / 0.5337 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001513/0.4534, allocations: 195.2 kB / 0.5339 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001173/0.4546, allocations: 271 kB / 0.5341 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.47, allocations: 8.588 MB / 0.5425 GB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001417/0.4701, allocations: 43.31 kB / 0.5426 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005156/0.4707, allocations: 127 kB / 0.5427 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002899/0.4736, allocations: 1.735 MB / 0.5444 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01469/0.4883, allocations: 7.278 MB / 0.5515 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04304/0.5314, allocations: 34.17 MB / 0.5848 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008943/0.5404, allocations: 3.469 MB / 0.5882 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002562/0.543, allocations: 1.72 MB / 0.5899 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.5554, allocations: 7.44 MB / 0.5972 GB, free: 3.789 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.887e-05/0.5555, allocations: 46.19 kB / 0.5972 GB, free: 3.738 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 5.49e-06/0.5555, allocations: 4 kB / 0.5972 GB, free: 3.734 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06947/0.625, allocations: 19.61 MB / 0.6164 GB, free: 28 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.6251, allocations: 197.2 kB / 0.6166 GB, free: 15.79 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007212/0.6324, allocations: 3.734 MB / 0.6202 GB, free: 12.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004327/0.6328, allocations: 49.7 kB / 0.6203 GB, free: 12.01 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002586/0.6354, allocations: 2.813 MB / 0.623 GB, free: 9.211 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001076/0.6365, allocations: 0.719 MB / 0.6237 GB, free: 8.496 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003084/0.6396, allocations: 1.2 MB / 0.6249 GB, free: 7.285 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.6398, allocations: 301.1 kB / 0.6252 GB, free: 6.988 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003963/0.6437, allocations: 2.202 MB / 0.6273 GB, free: 4.781 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006928/0.6507, allocations: 5.765 MB / 0.6329 GB, free: 13.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.6621, allocations: 8.588 MB / 0.6413 GB, free: 3.473 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/0.6623, allocations: 36 kB / 0.6414 GB, free: 3.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02174/0.684, allocations: 9.177 MB / 0.6503 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.6842, allocations: 64.06 kB / 0.6504 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000227/0.6845, allocations: 126.3 kB / 0.6505 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006343/0.6908, allocations: 1.664 MB / 0.6521 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/0.6955, allocations: 1.322 MB / 0.6534 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/0.7105, allocations: 9.239 MB / 0.6624 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00512/0.7157, allocations: 315.4 kB / 0.6627 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001481/0.7172, allocations: 362.4 kB / 0.6631 GB, free: 13.33 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.004862/0.7221, allocations: 1.897 MB / 0.6649 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009619/0.723, allocations: 331.7 kB / 0.6653 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/0.7337, allocations: 4.125 MB / 0.6693 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.168e-05/0.7338, allocations: 24 kB / 0.6693 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.252e-05/0.7339, allocations: 12 kB / 0.6693 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.628e-05/0.7339, allocations: 7.969 kB / 0.6693 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0219/0.7558, allocations: 8.541 MB / 0.6777 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.576e-05/0.7559, allocations: 0 / 0.6777 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001431/0.7573, allocations: 251.4 kB / 0.6779 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005736/0.7631, allocations: 1.437 MB / 0.6793 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003999/0.7635, allocations: 31.12 kB / 0.6793 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01379/0.7773, allocations: 8.559 MB / 0.6877 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.7774, allocations: 0 / 0.6877 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/0.791, allocations: 6.719 MB / 0.6943 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.7922, allocations: 380.7 kB / 0.6946 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/0.7933, allocations: 32 kB / 0.6947 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/0.7954, allocations: 83.89 kB / 0.6947 GB, free: 12.68 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005604/0.7959, allocations: 116.5 kB / 0.6948 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002529/0.7962, allocations: 51.98 kB / 0.6949 GB, free: 12.52 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004967/0.8012, allocations: 2.327 MB / 0.6972 GB, free: 10.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 5.41e-07/0.8012, allocations: 0 / 0.6972 GB, free: 10.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006/0.8072, allocations: 0.9961 MB / 0.6981 GB, free: 9.211 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.0006946/0.808, allocations: 161.2 kB / 0.6983 GB, free: 9.047 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009479/0.8174, allocations: 5.401 MB / 0.7036 GB, free: 3.664 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.8175, allocations: 0 / 0.7036 GB, free: 3.664 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003077/0.8206, allocations: 1.812 MB / 0.7053 GB, free: 1.84 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003539/0.8242, allocations: 378.5 kB / 0.7057 GB, free: 1.473 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.205/1.029, allocations: 10.71 MB / 0.7162 GB, free: 200 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004715/1.034, allocations: 2.956 MB / 0.719 GB, free: 199.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/1.035, allocations: 268.2 kB / 0.7193 GB, free: 199.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.035, allocations: 0 / 0.7193 GB, free: 199.2 MB / 0.545 GB Notification: Performance of Templates: time 0.08222/1.117, allocations: 69.27 MB / 0.7869 GB, free: 147 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches