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.001205/0.001205, allocations: 107.3 kB / 17.03 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.001095/0.001095, allocations: 192.1 kB / 17.96 MB, free: 5.066 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.563/1.563, allocations: 205.1 MB / 223.8 MB, free: 12.23 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.2135/0.2135, allocations: 43.53 MB / 314.7 MB, free: 472 kB / 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.001525/0.001525, allocations: 64.72 kB / 384.2 MB, free: 56.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1161, allocations: 57.79 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.009156/0.1253, allocations: 10.38 MB / 452.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007122/0.1324, allocations: 3.88 MB / 456.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.1335, allocations: 59.81 kB / 456.3 MB, free: 7.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003441/0.137, allocations: 2.067 MB / 458.3 MB, free: 5.684 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003854/0.1409, allocations: 1.708 MB / 460.1 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.1424, allocations: 0.6979 MB / 460.8 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005227/0.1476, allocations: 3.806 MB / 464.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003147/0.1508, allocations: 2.602 MB / 467.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.1529, allocations: 1.324 MB / 468.5 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.1555, allocations: 1.857 MB / 470.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005538/0.1561, allocations: 268 kB / 470.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002147/0.1583, allocations: 1.174 MB / 471.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001593/0.1599, allocations: 1.664 MB / 473.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002494/0.1624, allocations: 1.907 MB / 475.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007823/0.1702, allocations: 6.205 MB / 481.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.866e-06/0.1703, allocations: 0 / 481.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1703, allocations: 0 / 481.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002044/0.1705, allocations: 0 / 481.6 MB, free: 14.36 MB / 366.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.009396/0.1799, allocations: 4.233 MB / 485.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.569e-05/0.18, allocations: 11.89 kB / 485.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01424/0.1942, allocations: 2.429 MB / 488.2 MB, free: 7.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005651/0.1999, allocations: 2.495 MB / 490.7 MB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.2001, allocations: 189.3 kB / 490.9 MB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006442/0.2007, allocations: 279.9 kB / 491.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.2142, allocations: 8.572 MB / 499.8 MB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.2144, allocations: 51.58 kB / 499.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003802/0.2148, allocations: 127.8 kB / 499.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002647/0.2174, allocations: 1.739 MB / 0.4899 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.2312, allocations: 7.28 MB / 0.497 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2708/0.5021, allocations: 34.02 MB / 0.5302 GB, free: 79.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009087/0.5112, allocations: 3.477 MB / 0.5336 GB, free: 79.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.5133, allocations: 1.715 MB / 0.5353 GB, free: 79.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01185/0.5252, allocations: 7.436 MB / 0.5426 GB, free: 76.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.5253, allocations: 50.19 kB / 0.5426 GB, free: 76.76 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 4.829e-06/0.5253, allocations: 0 / 0.5426 GB, free: 76.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=188): time 0.05802/0.5833, allocations: 19.63 MB / 0.5618 GB, free: 69.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.931e-05/0.5834, allocations: 200.6 kB / 0.562 GB, free: 69.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004232/0.5877, allocations: 3.749 MB / 0.5656 GB, free: 66.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003693/0.5881, allocations: 49.7 kB / 0.5657 GB, free: 65.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.5893, allocations: 2.806 MB / 0.5684 GB, free: 63.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006442/0.5899, allocations: 0.7145 MB / 0.5691 GB, free: 62.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001235/0.5912, allocations: 1.206 MB / 0.5703 GB, free: 61.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.045e-05/0.5912, allocations: 305.1 kB / 0.5706 GB, free: 60.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.5937, allocations: 2.198 MB / 0.5727 GB, free: 58.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003518/0.5972, allocations: 5.771 MB / 0.5784 GB, free: 51.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006996/0.6042, allocations: 8.587 MB / 0.5868 GB, free: 41.01 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.875e-05/0.6043, allocations: 40 kB / 0.5868 GB, free: 40.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.0147/0.619, allocations: 9.176 MB / 0.5958 GB, free: 31.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.281e-05/0.6192, allocations: 56 kB / 0.5958 GB, free: 31.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/0.6193, allocations: 128 kB / 0.5959 GB, free: 31.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005072/0.6244, allocations: 1.66 MB / 0.5976 GB, free: 29.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003807/0.6282, allocations: 1.318 MB / 0.5988 GB, free: 28.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01244/0.6407, allocations: 9.926 MB / 0.6085 GB, free: 18.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004591/0.6453, allocations: 311.5 kB / 0.6088 GB, free: 18.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007774/0.6461, allocations: 363.6 kB / 0.6092 GB, free: 17.91 MB / 414.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.002778/0.6489, allocations: 1.895 MB / 0.611 GB, free: 16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005849/0.6495, allocations: 331.6 kB / 0.6113 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007777/0.6572, allocations: 4.133 MB / 0.6154 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/0.6573, allocations: 20 kB / 0.6154 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.578e-05/0.6573, allocations: 8 kB / 0.6154 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.6573, allocations: 15.91 kB / 0.6154 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/0.672, allocations: 8.508 MB / 0.6237 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.672, allocations: 4 kB / 0.6237 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.6731, allocations: 249 kB / 0.624 GB, free: 2.715 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00451/0.6776, allocations: 1.436 MB / 0.6254 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001737/0.6778, allocations: 31.98 kB / 0.6254 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/0.6909, allocations: 9.228 MB / 0.6344 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.6909, allocations: 3.938 kB / 0.6344 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/0.7034, allocations: 6.715 MB / 0.641 GB, free: 1.133 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/0.7057, allocations: 0.626 MB / 0.6416 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009716/0.7067, allocations: 28.06 kB / 0.6416 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002076/0.7088, allocations: 91.89 kB / 0.6417 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004389/0.7093, allocations: 108.5 kB / 0.6418 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001628/0.7095, allocations: 55.98 kB / 0.6419 GB, free: 212 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005328/0.7148, allocations: 2.328 MB / 0.6441 GB, free: 13.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7148, allocations: 0 / 0.6441 GB, free: 13.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005811/0.7206, allocations: 0.9935 MB / 0.6451 GB, free: 12.91 MB / 446.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.0005324/0.7212, allocations: 174.7 kB / 0.6453 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008909/0.7301, allocations: 5.412 MB / 0.6506 GB, free: 7.344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7301, allocations: 4 kB / 0.6506 GB, free: 7.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/0.7328, allocations: 1.807 MB / 0.6523 GB, free: 5.523 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002811/0.7356, allocations: 381.4 kB / 0.6527 GB, free: 5.156 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.7514, allocations: 8.544 MB / 0.661 GB, free: 12.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004041/0.7554, allocations: 2.971 MB / 0.6639 GB, free: 9.609 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00426/0.7597, allocations: 1.809 MB / 0.6657 GB, free: 7.793 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007262/0.7605, allocations: 227.4 kB / 0.6659 GB, free: 7.57 MB / 462.1 MB Notification: Performance of SimCode: time 7.02e-07/0.7605, allocations: 0 / 0.6659 GB, free: 7.57 MB / 462.1 MB Notification: Performance of Templates: time 0.06516/0.8256, allocations: 34.34 MB / 0.6995 GB, free: 5.441 MB / 494.1 MB 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches