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.001416/0.001416, allocations: 108.1 kB / 17.21 MB, free: 6.289 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.001624/0.001624, allocations: 194 kB / 18.12 MB, free: 5.383 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.364/1.364, allocations: 222.9 MB / 241.8 MB, free: 13.79 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.2065/0.2065, allocations: 44.17 MB / 336.1 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 68.5 kB / 407.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.113, allocations: 60.82 MB / 468.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.03369/0.1467, allocations: 34.84 MB / 0.4916 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02316/0.1699, allocations: 7.944 MB / 0.4993 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007831/0.1778, allocations: 151.6 kB / 0.4995 GB, free: 3.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005184/0.183, allocations: 2.061 MB / 0.5015 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004903/0.188, allocations: 1.584 MB / 0.503 GB, free: 60 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2516/0.4396, allocations: 0.6297 MB / 0.5036 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009333/0.449, allocations: 5.693 MB / 0.5092 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004328/0.4533, allocations: 2.577 MB / 0.5117 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002832/0.4562, allocations: 1.175 MB / 0.5129 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.4592, allocations: 1.989 MB / 0.5148 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005581/0.4597, allocations: 189.8 kB / 0.515 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002392/0.4621, allocations: 1.171 MB / 0.5161 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001603/0.4637, allocations: 1.614 MB / 0.5177 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001784/0.4655, allocations: 1.84 MB / 0.5195 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006679/0.4722, allocations: 5.939 MB / 0.5253 GB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.4723, allocations: 0 / 0.5253 GB, free: 7.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4723, allocations: 1.688 kB / 0.5253 GB, free: 7.992 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000168/0.4725, allocations: 4 kB / 0.5253 GB, free: 7.988 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.009749/0.4822, allocations: 4.224 MB / 0.5294 GB, free: 5.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/0.4823, allocations: 10.34 kB / 0.5294 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01451/0.4968, allocations: 2.428 MB / 0.5318 GB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006256/0.5031, allocations: 2.399 MB / 0.5342 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.5033, allocations: 189 kB / 0.5343 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008674/0.5041, allocations: 278.1 kB / 0.5346 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.5187, allocations: 8.573 MB / 0.543 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.5189, allocations: 43.2 kB / 0.543 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003856/0.5193, allocations: 130.5 kB / 0.5431 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002803/0.5221, allocations: 1.736 MB / 0.5448 GB, free: 9.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0142/0.5363, allocations: 7.285 MB / 0.5519 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04431/0.5807, allocations: 34.16 MB / 0.5853 GB, free: 15.58 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009041/0.5898, allocations: 3.484 MB / 0.5887 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002527/0.5923, allocations: 1.718 MB / 0.5904 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01246/0.6048, allocations: 7.424 MB / 0.5976 GB, free: 2.598 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/0.6049, allocations: 53.89 kB / 0.5977 GB, free: 2.539 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 4.879e-06/0.6049, allocations: 0 / 0.5977 GB, free: 2.539 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.06923/0.6742, allocations: 19.61 MB / 0.6168 GB, free: 14.84 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.6743, allocations: 201.2 kB / 0.617 GB, free: 14.61 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008488/0.6828, allocations: 3.737 MB / 0.6207 GB, free: 10.88 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005854/0.6835, allocations: 56.75 kB / 0.6207 GB, free: 10.82 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002628/0.6861, allocations: 2.804 MB / 0.6235 GB, free: 8.023 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/0.6875, allocations: 0.7161 MB / 0.6242 GB, free: 7.312 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001806/0.6893, allocations: 1.198 MB / 0.6253 GB, free: 6.102 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.6894, allocations: 305.1 kB / 0.6256 GB, free: 5.801 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003321/0.6928, allocations: 2.202 MB / 0.6278 GB, free: 3.594 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006284/0.699, allocations: 5.763 MB / 0.6334 GB, free: 12.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/0.7095, allocations: 8.591 MB / 0.6418 GB, free: 2.285 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.222e-05/0.7097, allocations: 36 kB / 0.6418 GB, free: 2.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01992/0.7296, allocations: 9.172 MB / 0.6508 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001539/0.7298, allocations: 63.98 kB / 0.6508 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002381/0.7301, allocations: 124 kB / 0.651 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005869/0.7359, allocations: 1.669 MB / 0.6526 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004733/0.7407, allocations: 1.322 MB / 0.6539 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/0.7555, allocations: 9.247 MB / 0.6629 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005683/0.7613, allocations: 307.5 kB / 0.6632 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001961/0.7633, allocations: 364 kB / 0.6636 GB, free: 12.13 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.006481/0.7698, allocations: 1.897 MB / 0.6654 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/0.771, allocations: 331.8 kB / 0.6657 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01073/0.7817, allocations: 4.128 MB / 0.6698 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.111e-05/0.7818, allocations: 23.98 kB / 0.6698 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-05/0.7819, allocations: 8 kB / 0.6698 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-05/0.7819, allocations: 11.97 kB / 0.6698 GB, free: 5.707 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02155/0.8035, allocations: 8.538 MB / 0.6781 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.8035, allocations: 4 kB / 0.6781 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.8049, allocations: 247.6 kB / 0.6784 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005527/0.8105, allocations: 1.428 MB / 0.6798 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003055/0.8108, allocations: 31.98 kB / 0.6798 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01348/0.8243, allocations: 8.566 MB / 0.6882 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/0.8243, allocations: 0 / 0.6882 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/0.8379, allocations: 6.72 MB / 0.6947 GB, free: 12 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/0.8391, allocations: 376.7 kB / 0.6951 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001128/0.8403, allocations: 28.47 kB / 0.6951 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/0.8425, allocations: 91.95 kB / 0.6952 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000566/0.8431, allocations: 112.5 kB / 0.6953 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/0.8434, allocations: 55.98 kB / 0.6954 GB, free: 11.32 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005644/0.849, allocations: 2.32 MB / 0.6976 GB, free: 9.02 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.51e-07/0.849, allocations: 3.938 kB / 0.6976 GB, free: 9.016 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006603/0.8557, allocations: 1 MB / 0.6986 GB, free: 8.016 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.0006711/0.8563, allocations: 166.3 kB / 0.6988 GB, free: 7.848 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01021/0.8666, allocations: 5.398 MB / 0.704 GB, free: 2.469 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.8666, allocations: 4.188 kB / 0.704 GB, free: 2.465 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003141/0.8698, allocations: 1.803 MB / 0.7058 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/0.8735, allocations: 378.1 kB / 0.7062 GB, free: 284 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2554/1.129, allocations: 10.34 MB / 0.7163 GB, free: 200.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005065/1.134, allocations: 2.966 MB / 0.7192 GB, free: 199.3 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005711/1.14, allocations: 1.815 MB / 0.7209 GB, free: 199.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009008/1.141, allocations: 224.2 kB / 0.7211 GB, free: 199.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.141, allocations: 0 / 0.7211 GB, free: 199.3 MB / 0.545 GB Notification: Performance of Templates: time 0.07421/1.215, allocations: 37.67 MB / 0.7579 GB, free: 176 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/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_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches