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.001594/0.001594, allocations: 102.8 kB / 16.64 MB, free: 6.82 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.001788/0.001788, allocations: 194.5 kB / 17.56 MB, free: 5.938 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.405/1.405, allocations: 205.1 MB / 223.4 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.203/0.203, allocations: 43.51 MB / 314.3 MB, free: 0.7227 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.001419/0.001419, allocations: 67.83 kB / 382.9 MB, free: 56.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1082, allocations: 57.8 MB / 440.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02887/0.1371, allocations: 34.85 MB / 475.5 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.1541, allocations: 7.855 MB / 483.4 MB, free: 12.49 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007299/0.1615, allocations: 147.6 kB / 483.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004162/0.1657, allocations: 1.983 MB / 485.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004673/0.1704, allocations: 1.585 MB / 487.1 MB, free: 8.766 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.172, allocations: 0.6552 MB / 487.7 MB, free: 8.109 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00526/0.1773, allocations: 3.95 MB / 491.7 MB, free: 4.152 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003251/0.1806, allocations: 2.758 MB / 494.4 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.1826, allocations: 1.351 MB / 495.8 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002469/0.1851, allocations: 2.072 MB / 497.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005374/0.1856, allocations: 264 kB / 498.1 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002166/0.1878, allocations: 1.197 MB / 499.3 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001508/0.1893, allocations: 1.703 MB / 0.4893 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001735/0.1911, allocations: 1.926 MB / 0.4912 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004925/0.196, allocations: 4.849 MB / 0.4959 GB, free: 3.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.196, allocations: 0 / 0.4959 GB, free: 3.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.1961, allocations: 0 / 0.4959 GB, free: 3.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001294/0.1962, allocations: 0 / 0.4959 GB, free: 3.945 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.008314/0.2045, allocations: 4.241 MB / 0.5 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.2046, allocations: 11.89 kB / 0.5001 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/0.2189, allocations: 2.422 MB / 0.5024 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005592/0.2246, allocations: 2.464 MB / 0.5048 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001504/0.2247, allocations: 193.3 kB / 0.505 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007073/0.2254, allocations: 271.9 kB / 0.5053 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.239, allocations: 8.572 MB / 0.5136 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.2391, allocations: 47.58 kB / 0.5137 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003236/0.2395, allocations: 123.9 kB / 0.5138 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00258/0.2421, allocations: 1.735 MB / 0.5155 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01285/0.2549, allocations: 7.284 MB / 0.5226 GB, free: 7.812 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2381/0.4931, allocations: 34.16 MB / 0.556 GB, free: 65.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008374/0.5015, allocations: 3.471 MB / 0.5594 GB, free: 64.41 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00219/0.5037, allocations: 1.723 MB / 0.561 GB, free: 63.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009897/0.5137, allocations: 7.44 MB / 0.5683 GB, free: 59.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.5137, allocations: 51.61 kB / 0.5684 GB, free: 59.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 5.38e-06/0.5137, allocations: 2.938 kB / 0.5684 GB, free: 59.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=188): time 0.05918/0.5729, allocations: 19.63 MB / 0.5875 GB, free: 43.37 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.573, allocations: 201.2 kB / 0.5877 GB, free: 43.13 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004042/0.5771, allocations: 3.746 MB / 0.5914 GB, free: 39.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003988/0.5775, allocations: 53.7 kB / 0.5914 GB, free: 39.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.5787, allocations: 2.8 MB / 0.5942 GB, free: 36.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000654/0.5794, allocations: 0.7205 MB / 0.5949 GB, free: 35.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/0.5806, allocations: 1.205 MB / 0.596 GB, free: 34.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.204e-05/0.5807, allocations: 305.1 kB / 0.5963 GB, free: 34.31 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.5831, allocations: 2.198 MB / 0.5985 GB, free: 32.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/0.5868, allocations: 5.77 MB / 0.6041 GB, free: 24.56 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007045/0.5939, allocations: 8.594 MB / 0.6125 GB, free: 14.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.839e-05/0.594, allocations: 36 kB / 0.6125 GB, free: 14.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01603/0.61, allocations: 9.17 MB / 0.6215 GB, free: 4.992 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-05/0.6101, allocations: 56 kB / 0.6216 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/0.6103, allocations: 131.9 kB / 0.6217 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005255/0.6155, allocations: 1.66 MB / 0.6233 GB, free: 3.145 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003922/0.6195, allocations: 1.326 MB / 0.6246 GB, free: 1.816 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/0.633, allocations: 9.935 MB / 0.6343 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004344/0.6373, allocations: 319.5 kB / 0.6346 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009571/0.6383, allocations: 356 kB / 0.6349 GB, free: 7.098 MB / 430.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.00294/0.6413, allocations: 1.892 MB / 0.6368 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006447/0.6419, allocations: 331.8 kB / 0.6371 GB, free: 4.871 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008878/0.6508, allocations: 4.141 MB / 0.6411 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.123e-05/0.6509, allocations: 20 kB / 0.6412 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.6509, allocations: 8 kB / 0.6412 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.632e-05/0.6509, allocations: 7.969 kB / 0.6412 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01673/0.6677, allocations: 8.544 MB / 0.6495 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.202e-05/0.6678, allocations: 0 / 0.6495 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/0.6693, allocations: 251.6 kB / 0.6498 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005395/0.6747, allocations: 1.429 MB / 0.6512 GB, free: 6.434 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003155/0.6751, allocations: 35.98 kB / 0.6512 GB, free: 6.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01285/0.6879, allocations: 9.239 MB / 0.6602 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.688, allocations: 0 / 0.6602 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01234/0.7003, allocations: 6.715 MB / 0.6668 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00182/0.7022, allocations: 0.6255 MB / 0.6674 GB, free: 5.648 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005465/0.7027, allocations: 28 kB / 0.6674 GB, free: 5.621 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.7042, allocations: 91.95 kB / 0.6675 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003576/0.7046, allocations: 105.2 kB / 0.6676 GB, free: 5.426 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.7047, allocations: 51.98 kB / 0.6676 GB, free: 5.375 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003482/0.7082, allocations: 2.332 MB / 0.6699 GB, free: 3.059 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7082, allocations: 3.656 kB / 0.6699 GB, free: 3.059 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005023/0.7133, allocations: 0.9971 MB / 0.6709 GB, free: 2.066 MB / 462.1 MB 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.0005529/0.7138, allocations: 175.7 kB / 0.6711 GB, free: 1.895 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01087/0.7247, allocations: 6.327 MB / 0.6772 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.7248, allocations: 448 / 0.6772 GB, free: 11.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/0.7274, allocations: 1.809 MB / 0.679 GB, free: 9.781 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00247/0.7299, allocations: 387.7 kB / 0.6794 GB, free: 9.402 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/0.7453, allocations: 10.73 MB / 0.6899 GB, free: 14.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003143/0.7485, allocations: 2.957 MB / 0.6928 GB, free: 11.65 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009749/0.7495, allocations: 271.4 kB / 0.693 GB, free: 11.38 MB / 494.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7495, allocations: 0 / 0.693 GB, free: 11.38 MB / 494.1 MB Notification: Performance of Templates: time 0.2939/1.043, allocations: 69.31 MB / 0.7607 GB, free: 142.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/jenkins1/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