Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00115/0.001151, allocations: 107.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 246.4 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2299/0.2299, allocations: 46.09 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 75.22 kB / 417 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1336, allocations: 62.44 MB / 479.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2): time 0.3337/0.4674, allocations: 72.71 MB / 0.5392 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0396/0.507, allocations: 14.4 MB / 0.5533 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02349/0.5305, allocations: 328.5 kB / 0.5536 GB, free: 8.363 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009212/0.5399, allocations: 4.182 MB / 0.5577 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009404/0.5493, allocations: 2.515 MB / 0.5602 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004601/0.5539, allocations: 1.382 MB / 0.5615 GB, free: 2.949 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01554/0.5695, allocations: 9.015 MB / 0.5703 GB, free: 10.22 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01248/0.582, allocations: 5.66 MB / 0.5758 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006461/0.5886, allocations: 2.722 MB / 0.5785 GB, free: 1.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006665/0.5953, allocations: 4.226 MB / 0.5826 GB, free: 13.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002213/0.5975, allocations: 0.5352 MB / 0.5831 GB, free: 13 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004461/0.602, allocations: 1.631 MB / 0.5847 GB, free: 11.37 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005043/0.6071, allocations: 3.347 MB / 0.588 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006693/0.6138, allocations: 3.659 MB / 0.5916 GB, free: 4.336 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.6278, allocations: 10.85 MB / 0.6022 GB, free: 9.453 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.6279, allocations: 4 kB / 0.6022 GB, free: 9.449 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6279, allocations: 0 / 0.6022 GB, free: 9.449 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003717/0.6283, allocations: 0 / 0.6022 GB, free: 9.449 MB / 446.1 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.02312/0.6514, allocations: 8.191 MB / 0.6102 GB, free: 1.172 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.6515, allocations: 8.031 kB / 0.6102 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02817/0.6797, allocations: 3.67 MB / 0.6138 GB, free: 13.48 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/0.6929, allocations: 5.18 MB / 0.6188 GB, free: 8.215 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/0.6933, allocations: 369.8 kB / 0.6192 GB, free: 7.852 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002344/0.6957, allocations: 0.5154 MB / 0.6197 GB, free: 7.336 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03374/0.7294, allocations: 16.24 MB / 0.6355 GB, free: 6.023 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002981/0.7298, allocations: 75.36 kB / 0.6356 GB, free: 5.949 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001031/0.7308, allocations: 239.8 kB / 0.6358 GB, free: 5.715 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004822/0.7356, allocations: 2.915 MB / 0.6387 GB, free: 2.793 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03077/0.7664, allocations: 13.71 MB / 0.6521 GB, free: 5.062 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09113/0.8576, allocations: 64.73 MB / 0.7153 GB, free: 2.461 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2997/1.157, allocations: 7.835 MB / 0.7229 GB, free: 196.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006292/1.164, allocations: 4.279 MB / 0.7271 GB, free: 194.3 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02747/1.191, allocations: 19.36 MB / 0.746 GB, free: 184.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/1.191, allocations: 65.81 kB / 0.7461 GB, free: 184.4 MB / 0.545 GB Notification: Performance of pre-optimization done (n=284): time 4.238e-06/1.191, allocations: 0 / 0.7461 GB, free: 184.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=366): time 0.1582/1.35, allocations: 51.88 MB / 0.7967 GB, free: 141.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/1.35, allocations: 269.8 kB / 0.797 GB, free: 141.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007467/1.357, allocations: 6.042 MB / 0.8029 GB, free: 135.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001052/1.358, allocations: 81.7 kB / 0.803 GB, free: 135.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002397/1.361, allocations: 4.669 MB / 0.8075 GB, free: 130.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001658/1.362, allocations: 1.353 MB / 0.8089 GB, free: 129.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002408/1.365, allocations: 1.904 MB / 0.8107 GB, free: 127.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.971e-05/1.365, allocations: 305.1 kB / 0.811 GB, free: 127.2 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005114/1.37, allocations: 4.212 MB / 0.8151 GB, free: 123 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007351/1.377, allocations: 9.432 MB / 0.8243 GB, free: 111 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01504/1.392, allocations: 14.59 MB / 0.8386 GB, free: 93.89 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002011/1.393, allocations: 56 kB / 0.8386 GB, free: 93.83 MB / 0.545 GB Notification: Performance of matching and sorting (n=1250) (initialization): time 0.04053/1.433, allocations: 17.55 MB / 0.8558 GB, free: 76.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002692/1.433, allocations: 84 kB / 0.8559 GB, free: 76.15 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004632/1.434, allocations: 180 kB / 0.856 GB, free: 75.98 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01998/1.454, allocations: 4.585 MB / 0.8605 GB, free: 71.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01235/1.466, allocations: 2.125 MB / 0.8626 GB, free: 69.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05833/1.525, allocations: 25.46 MB / 0.8874 GB, free: 43.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01514/1.54, allocations: 0.5227 MB / 0.888 GB, free: 42.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002829/1.543, allocations: 0.5351 MB / 0.8885 GB, free: 42.46 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * 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 (1130): * Single equations (assignments): 1125 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,45,100.0%), (2,50,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01021/1.553, allocations: 3.123 MB / 0.8915 GB, free: 39.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002805/1.556, allocations: 0.5631 MB / 0.8921 GB, free: 38.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03838/1.594, allocations: 10.72 MB / 0.9025 GB, free: 27.97 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.962e-05/1.594, allocations: 36.05 kB / 0.9026 GB, free: 27.94 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.376e-05/1.594, allocations: 23.98 kB / 0.9026 GB, free: 27.91 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.955e-05/1.595, allocations: 19.92 kB / 0.9026 GB, free: 27.89 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3078/1.902, allocations: 20.45 MB / 0.9226 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-05/1.903, allocations: 1.562 kB / 0.9226 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002939/1.905, allocations: 0.5292 MB / 0.9231 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01401/1.919, allocations: 4.247 MB / 0.9273 GB, free: 173.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008341/1.92, allocations: 63.91 kB / 0.9273 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03212/1.952, allocations: 23.17 MB / 0.9499 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/1.953, allocations: 3.938 kB / 0.9499 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02702/1.98, allocations: 15.6 MB / 0.9652 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002209/1.982, allocations: 0.5873 MB / 0.9658 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001181/1.983, allocations: 61.06 kB / 0.9658 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002848/1.986, allocations: 223.1 kB / 0.966 GB, free: 158.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009279/1.987, allocations: 226.7 kB / 0.9662 GB, free: 158 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002759/1.987, allocations: 103.4 kB / 0.9663 GB, free: 158 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00557/1.993, allocations: 3.768 MB / 0.97 GB, free: 154.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.5e-07/1.993, allocations: 0 / 0.97 GB, free: 154.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01026/2.003, allocations: 1.896 MB / 0.9719 GB, free: 153 MB / 0.545 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 (266): * Single equations (assignments): 261 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (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.000976/2.004, allocations: 224.8 kB / 0.9721 GB, free: 152.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02473/2.029, allocations: 15.17 MB / 0.9869 GB, free: 137.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/2.029, allocations: 0 / 0.9869 GB, free: 137.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005589/2.034, allocations: 4.087 MB / 0.9909 GB, free: 133.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004878/2.039, allocations: 0.7789 MB / 0.9917 GB, free: 132.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02671/2.066, allocations: 19.58 MB / 1.011 GB, free: 113.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005631/2.072, allocations: 4.854 MB / 1.016 GB, free: 108.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007169/2.079, allocations: 2.761 MB / 1.018 GB, free: 105.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/2.08, allocations: 387.4 kB / 1.019 GB, free: 105.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.293e-06/2.08, allocations: 0 / 1.019 GB, free: 105.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1333/2.214, allocations: 84.41 MB / 1.101 GB, free: 21.47 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches