Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009577/0.0009577, allocations: 196.4 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008206/0.0008206, allocations: 99.7 kB / 299.9 MB, free: 5.355 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3111/0.3111, allocations: 45 MB / 397 MB, free: 31.46 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002838, allocations: 8 kB / 470.8 MB, free: 7.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.317, allocations: 63.1 MB / 0.5214 GB, free: 38.46 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02442/0.3414, allocations: 31.62 MB / 0.5523 GB, free: 16.08 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02097/0.3624, allocations: 11.17 MB / 0.5632 GB, free: 6.785 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00809/0.3706, allocations: 147.1 kB / 0.5633 GB, free: 6.762 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.372, allocations: 385.8 kB / 0.5637 GB, free: 6.613 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004755/0.3768, allocations: 1.574 MB / 0.5652 GB, free: 5.945 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.3786, allocations: 0.6319 MB / 0.5658 GB, free: 5.699 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008291/0.3869, allocations: 5.764 MB / 0.5715 GB, free: 2.809 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00427/0.3912, allocations: 3.819 MB / 0.5752 GB, free: 14.93 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.3932, allocations: 1.152 MB / 0.5763 GB, free: 13.77 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00222/0.3954, allocations: 1.791 MB / 0.5781 GB, free: 11.98 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003465/0.3958, allocations: 127.9 kB / 0.5782 GB, free: 11.85 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002086/0.3979, allocations: 1.076 MB / 0.5792 GB, free: 10.77 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001363/0.3992, allocations: 1.511 MB / 0.5807 GB, free: 9.258 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001734/0.401, allocations: 1.752 MB / 0.5824 GB, free: 7.488 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00634/0.4073, allocations: 5.785 MB / 0.5881 GB, free: 1.684 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4074, allocations: 0 / 0.5881 GB, free: 1.684 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4074, allocations: 0 / 0.5881 GB, free: 1.684 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001285/0.4075, allocations: 4 kB / 0.5881 GB, free: 1.68 MB / 394.7 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.006289/0.4138, allocations: 3.493 MB / 0.5915 GB, free: 14.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.4139, allocations: 12.02 kB / 0.5915 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01403/0.4279, allocations: 2.492 MB / 0.5939 GB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005723/0.4337, allocations: 2.367 MB / 0.5962 GB, free: 9.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.4338, allocations: 197.3 kB / 0.5964 GB, free: 8.984 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006244/0.4345, allocations: 279.6 kB / 0.5967 GB, free: 8.711 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01451/0.449, allocations: 8.576 MB / 0.6051 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/0.4492, allocations: 43.64 kB / 0.6051 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003488/0.4495, allocations: 123.9 kB / 0.6052 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00271/0.4522, allocations: 1.739 MB / 0.6069 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.4663, allocations: 7.276 MB / 0.614 GB, free: 6.324 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04219/0.5085, allocations: 34.19 MB / 0.6474 GB, free: 3.047 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008255/0.5168, allocations: 3.521 MB / 0.6509 GB, free: 15.37 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002268/0.5191, allocations: 1.705 MB / 0.6525 GB, free: 13.66 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/0.5304, allocations: 7.435 MB / 0.6598 GB, free: 5.949 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.5305, allocations: 55.56 kB / 0.6598 GB, free: 5.887 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 5.851e-06/0.5305, allocations: 0 / 0.6598 GB, free: 5.887 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.06345/0.594, allocations: 19.92 MB / 0.6793 GB, free: 1.801 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.5941, allocations: 201.2 kB / 0.6795 GB, free: 1.562 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2448/0.839, allocations: 3.704 MB / 0.6831 GB, free: 132.8 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003681/0.8394, allocations: 54.39 kB / 0.6832 GB, free: 132.8 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/0.8413, allocations: 2.804 MB / 0.6859 GB, free: 131 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008567/0.8421, allocations: 0.7177 MB / 0.6866 GB, free: 130.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005357/0.8427, allocations: 121.5 kB / 0.6867 GB, free: 130.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004332/0.8431, allocations: 0.5532 MB / 0.6873 GB, free: 130 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003227/0.8464, allocations: 2.183 MB / 0.6894 GB, free: 129.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00451/0.8509, allocations: 5.746 MB / 0.695 GB, free: 123.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007336/0.8582, allocations: 8.569 MB / 0.7034 GB, free: 116.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-05/0.8583, allocations: 36.78 kB / 0.7034 GB, free: 116.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01846/0.8768, allocations: 9.158 MB / 0.7123 GB, free: 113.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.957e-05/0.8769, allocations: 58 kB / 0.7124 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/0.8771, allocations: 129.2 kB / 0.7125 GB, free: 113.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006205/0.8833, allocations: 1.683 MB / 0.7142 GB, free: 113.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004685/0.888, allocations: 1.323 MB / 0.7155 GB, free: 113 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/0.8999, allocations: 9.319 MB / 0.7246 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004428/0.9044, allocations: 322 kB / 0.7249 GB, free: 108.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008241/0.9053, allocations: 366.8 kB / 0.7252 GB, free: 108.5 MB / 490.7 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.003575/0.9088, allocations: 1.886 MB / 0.7271 GB, free: 107.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007964/0.9096, allocations: 336.3 kB / 0.7274 GB, free: 107.4 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00803/0.9177, allocations: 4.16 MB / 0.7314 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-05/0.9177, allocations: 23.84 kB / 0.7315 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.9177, allocations: 8 kB / 0.7315 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.9178, allocations: 7.734 kB / 0.7315 GB, free: 105.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01353/0.9313, allocations: 8.555 MB / 0.7398 GB, free: 96.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.9313, allocations: 4 kB / 0.7398 GB, free: 96.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.9324, allocations: 251.6 kB / 0.7401 GB, free: 96.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004568/0.937, allocations: 1.464 MB / 0.7415 GB, free: 95.06 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001331/0.9371, allocations: 35.98 kB / 0.7415 GB, free: 95.03 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009923/0.947, allocations: 8.594 MB / 0.7499 GB, free: 86.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.9471, allocations: 7.875 kB / 0.7499 GB, free: 86.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/0.9575, allocations: 6.737 MB / 0.7565 GB, free: 79.54 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009913/0.9586, allocations: 380.7 kB / 0.7569 GB, free: 79.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006621/0.9592, allocations: 31.53 kB / 0.7569 GB, free: 79.12 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/0.9607, allocations: 96.58 kB / 0.757 GB, free: 79.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003399/0.961, allocations: 117 kB / 0.7571 GB, free: 78.91 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.9611, allocations: 52.61 kB / 0.7572 GB, free: 78.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002595/0.9637, allocations: 2.288 MB / 0.7594 GB, free: 76.59 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9637, allocations: 0 / 0.7594 GB, free: 76.59 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005048/0.9688, allocations: 1.002 MB / 0.7604 GB, free: 75.59 MB / 490.7 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.0004758/0.9693, allocations: 176.3 kB / 0.7606 GB, free: 75.42 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008742/0.978, allocations: 5.379 MB / 0.7658 GB, free: 70.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.8e-06/0.9781, allocations: 4 kB / 0.7658 GB, free: 70.04 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001976/0.9801, allocations: 1.793 MB / 0.7676 GB, free: 68.24 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/0.9826, allocations: 384.4 kB / 0.7679 GB, free: 67.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.994, allocations: 10.42 MB / 0.7781 GB, free: 57.41 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/0.9962, allocations: 2.965 MB / 0.781 GB, free: 54.41 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003804/1, allocations: 1.822 MB / 0.7828 GB, free: 52.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005007/1.001, allocations: 219.4 kB / 0.783 GB, free: 52.36 MB / 490.7 MB Notification: Performance of SimCode: time 8.02e-07/1.001, allocations: 4 kB / 0.783 GB, free: 52.36 MB / 490.7 MB Notification: Performance of Templates: time 0.05515/1.056, allocations: 37.16 MB / 0.8193 GB, free: 15.36 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches