Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 176.8 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.225/1.225, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007761/0.0007763, allocations: 98.33 kB / 292.2 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3302/0.3302, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003372, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3131/0.3134, allocations: 61.9 MB / 0.5096 GB, free: 38.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.4547, allocations: 114.5 MB / 0.6214 GB, free: 12.55 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002892/0.4551, allocations: 87.94 kB / 0.6215 GB, free: 12.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5865/1.042, allocations: 137.9 MB / 0.7561 GB, free: 86.78 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.042, allocations: 0 / 0.7561 GB, free: 86.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0006621/1.042, allocations: 131.8 kB / 0.7562 GB, free: 86.77 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.029/1.071, allocations: 7.61 MB / 0.7637 GB, free: 81.89 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/1.071, allocations: 7.188 kB / 0.7637 GB, free: 81.89 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0307/1.102, allocations: 7.557 MB / 0.7711 GB, free: 75.6 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02651/1.129, allocations: 9.231 MB / 0.7801 GB, free: 66.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006139/1.129, allocations: 492.9 kB / 0.7805 GB, free: 65.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004332/1.134, allocations: 0.6558 MB / 0.7812 GB, free: 65.14 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03938/1.173, allocations: 16.72 MB / 0.7975 GB, free: 46.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003201/1.174, allocations: 111 kB / 0.7976 GB, free: 46.87 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009936/1.175, allocations: 315.8 kB / 0.7979 GB, free: 46.56 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001841/1.176, allocations: 1.576 MB / 0.7995 GB, free: 44.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02886/1.205, allocations: 13.75 MB / 0.8129 GB, free: 31.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4255/1.631, allocations: 74.24 MB / 0.8854 GB, free: 63.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0208/1.652, allocations: 7.705 MB / 0.8929 GB, free: 62.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02633/1.678, allocations: 18.57 MB / 0.9111 GB, free: 58.36 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.417e-05/1.678, allocations: 69.52 kB / 0.9111 GB, free: 58.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 5.21e-06/1.678, allocations: 0 / 0.9111 GB, free: 58.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.1677/1.846, allocations: 48.19 MB / 0.9582 GB, free: 49.06 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/1.846, allocations: 277.6 kB / 0.9584 GB, free: 48.77 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01156/1.858, allocations: 5.347 MB / 0.9637 GB, free: 46.95 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001025/1.859, allocations: 81.2 kB / 0.9637 GB, free: 46.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.003607/1.862, allocations: 4.762 MB / 0.9684 GB, free: 43.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002079/1.864, allocations: 1.336 MB / 0.9697 GB, free: 42.23 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001403/1.866, allocations: 181.3 kB / 0.9699 GB, free: 42.09 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005767/1.866, allocations: 0.6946 MB / 0.9705 GB, free: 41.62 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006242/1.873, allocations: 3.75 MB / 0.9742 GB, free: 39.24 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008385/1.881, allocations: 8.946 MB / 0.9829 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007779/1.889, allocations: 5.625 MB / 0.9884 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001264/1.889, allocations: 52 kB / 0.9885 GB, free: 23.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1201) (initialization): time 0.03287/1.922, allocations: 16.1 MB / 1.004 GB, free: 11.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002397/1.922, allocations: 88.27 kB / 1.004 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003688/1.923, allocations: 180 kB / 1.004 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01326/1.936, allocations: 4.076 MB / 1.008 GB, free: 8.113 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00792/1.944, allocations: 2.037 MB / 1.01 GB, free: 6.336 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03425/1.978, allocations: 21.76 MB / 1.032 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009073/1.987, allocations: 0.5346 MB / 1.032 GB, free: 428 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002419/1.99, allocations: 0.5235 MB / 1.033 GB, free: 15.89 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 831 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1081): * Single equations (assignments): 1076 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 45,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01001/2, allocations: 3.112 MB / 1.036 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002121/2.002, allocations: 0.5746 MB / 1.036 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02563/2.028, allocations: 9.547 MB / 1.046 GB, free: 2.582 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.315e-05/2.028, allocations: 36 kB / 1.046 GB, free: 2.547 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-05/2.028, allocations: 24 kB / 1.046 GB, free: 2.523 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.213e-05/2.028, allocations: 19.45 kB / 1.046 GB, free: 2.508 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04572/2.074, allocations: 18.98 MB / 1.064 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-05/2.074, allocations: 0 / 1.064 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002922/2.077, allocations: 0.4954 MB / 1.065 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01338/2.09, allocations: 3.675 MB / 1.068 GB, free: 11.23 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008581/2.091, allocations: 56 kB / 1.068 GB, free: 11.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03081/2.122, allocations: 19.65 MB / 1.088 GB, free: 7.277 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/2.122, allocations: 4 kB / 1.088 GB, free: 7.273 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.339/2.461, allocations: 14.04 MB / 1.101 GB, free: 173.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/2.463, allocations: 0.5797 MB / 1.102 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001741/2.465, allocations: 60.92 kB / 1.102 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003634/2.469, allocations: 236.2 kB / 1.102 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00093/2.47, allocations: 220.2 kB / 1.102 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002949/2.47, allocations: 89.27 kB / 1.102 GB, free: 173.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.009712/2.48, allocations: 3.763 MB / 1.106 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.462e-06/2.48, allocations: 0 / 1.106 GB, free: 173.3 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01254/2.492, allocations: 1.845 MB / 1.108 GB, free: 173.3 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (263): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009028/2.493, allocations: 225.6 kB / 1.108 GB, free: 173.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01835/2.512, allocations: 9.566 MB / 1.117 GB, free: 172.8 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/2.512, allocations: 0.9688 kB / 1.117 GB, free: 172.8 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00626/2.518, allocations: 3.752 MB / 1.121 GB, free: 172.5 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/2.523, allocations: 0.7077 MB / 1.122 GB, free: 172.5 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03501/2.558, allocations: 18.3 MB / 1.14 GB, free: 165.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008625/2.566, allocations: 4.992 MB / 1.145 GB, free: 164.4 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.007652/2.574, allocations: 2.794 MB / 1.147 GB, free: 164.4 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/2.576, allocations: 378.3 kB / 1.148 GB, free: 164.4 MB / 0.5886 GB Notification: Performance of SimCode: time 1.373e-06/2.576, allocations: 0 / 1.148 GB, free: 164.4 MB / 0.5886 GB Notification: Performance of Templates: time 0.1289/2.704, allocations: 74.68 MB / 1.221 GB, free: 124 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses2/ForceWithTwoMasses2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches