Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Forces.LineForceWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001588/0.001588, allocations: 199.8 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 226.5 MB / 243.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007482/0.0007482, allocations: 98.16 kB / 295.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3038/0.3038, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002768/0.0002769, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2964, allocations: 62.96 MB / 0.5159 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.04132/0.3378, allocations: 57.98 MB / 0.5725 GB, free: 11.66 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02826/0.3661, allocations: 12.45 MB / 0.5847 GB, free: 2.145 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01229/0.3784, allocations: 279.3 kB / 0.5849 GB, free: 1.871 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01047/0.3889, allocations: 2.982 MB / 0.5878 GB, free: 15.57 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02332/0.4123, allocations: 8.879 MB / 0.5965 GB, free: 6.66 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004949/0.4173, allocations: 1.065 MB / 0.5976 GB, free: 5.594 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07171/0.489, allocations: 62.63 MB / 0.6587 GB, free: 6.875 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008521/0.4976, allocations: 6.027 MB / 0.6646 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003512/0.5011, allocations: 1.837 MB / 0.6664 GB, free: 14.92 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004679/0.5058, allocations: 2.835 MB / 0.6692 GB, free: 12.08 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.5069, allocations: 208 kB / 0.6694 GB, free: 11.88 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003084/0.51, allocations: 1.353 MB / 0.6707 GB, free: 10.52 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002629/0.5126, allocations: 2.388 MB / 0.673 GB, free: 8.129 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002905/0.5156, allocations: 2.541 MB / 0.6755 GB, free: 5.566 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.275/0.7906, allocations: 7.201 MB / 0.6825 GB, free: 71.09 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.7907, allocations: 1 kB / 0.6825 GB, free: 71.09 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.7907, allocations: 0 / 0.6825 GB, free: 71.09 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003623/0.791, allocations: 0 / 0.6825 GB, free: 71.09 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.01311/0.8041, allocations: 5.608 MB / 0.688 GB, free: 68.75 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.8042, allocations: 11.56 kB / 0.688 GB, free: 68.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02325/0.8275, allocations: 3.373 MB / 0.6913 GB, free: 68.37 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01006/0.8376, allocations: 4.038 MB / 0.6953 GB, free: 67.63 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002306/0.8378, allocations: 317.5 kB / 0.6956 GB, free: 67.62 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001785/0.8396, allocations: 426.4 kB / 0.696 GB, free: 67.61 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02645/0.8661, allocations: 13.81 MB / 0.7095 GB, free: 65.22 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001682/0.8663, allocations: 58.7 kB / 0.7095 GB, free: 65.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006705/0.867, allocations: 199.5 kB / 0.7097 GB, free: 65.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003623/0.8706, allocations: 2.523 MB / 0.7122 GB, free: 65.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0224/0.893, allocations: 11.78 MB / 0.7237 GB, free: 63.02 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05667/0.9498, allocations: 53.76 MB / 0.7762 GB, free: 17.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01393/0.9637, allocations: 5.917 MB / 0.782 GB, free: 13.25 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004344/0.9681, allocations: 3.583 MB / 0.7854 GB, free: 11.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02088/0.9891, allocations: 15.44 MB / 0.8005 GB, free: 11.27 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.527e-05/0.9892, allocations: 56.56 kB / 0.8006 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=230): time 7.694e-06/0.9892, allocations: 3.984 kB / 0.8006 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=267): time 0.09051/1.08, allocations: 28.64 MB / 0.8286 GB, free: 14.53 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/1.08, allocations: 269 kB / 0.8288 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008807/1.089, allocations: 5.023 MB / 0.8337 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006451/1.089, allocations: 65.7 kB / 0.8338 GB, free: 9.129 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002945/1.092, allocations: 3.889 MB / 0.8376 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.094, allocations: 0.9982 MB / 0.8386 GB, free: 4.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000951/1.095, allocations: 156 kB / 0.8387 GB, free: 4.117 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0006763/1.096, allocations: 0.6285 MB / 0.8393 GB, free: 3.484 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005213/1.101, allocations: 2.978 MB / 0.8422 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008421/1.109, allocations: 7.312 MB / 0.8494 GB, free: 7.148 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01346/1.123, allocations: 11.07 MB / 0.8602 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/1.123, allocations: 40 kB / 0.8602 GB, free: 10.55 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02077/1.144, allocations: 11.14 MB / 0.8711 GB, free: 320 kB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.000116/1.144, allocations: 69.88 kB / 0.8712 GB, free: 252 kB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002041/1.144, allocations: 152.1 kB / 0.8713 GB, free: 100 kB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003211/1.147, allocations: 1.221 MB / 0.8725 GB, free: 14.87 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006344/1.154, allocations: 1.826 MB / 0.8743 GB, free: 13.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009069/1.163, allocations: 7.782 MB / 0.8819 GB, free: 5.238 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005866/1.169, allocations: 427.3 kB / 0.8823 GB, free: 4.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001388/1.17, allocations: 456 kB / 0.8827 GB, free: 4.375 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[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],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 (954): * Single equations (assignments): 949 * 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%) 12,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005587/1.176, allocations: 2.623 MB / 0.8853 GB, free: 1.891 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/1.177, allocations: 466 kB / 0.8857 GB, free: 1.43 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00961/1.186, allocations: 5.223 MB / 0.8908 GB, free: 12.2 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.815e-05/1.187, allocations: 28 kB / 0.8908 GB, free: 12.17 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/1.187, allocations: 5.75 kB / 0.8909 GB, free: 12.17 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-05/1.187, allocations: 11.95 kB / 0.8909 GB, free: 12.16 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02258/1.209, allocations: 11.74 MB / 0.9023 GB, free: 460 kB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/1.209, allocations: 0 / 0.9023 GB, free: 460 kB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2205/1.43, allocations: 0.4983 MB / 0.9028 GB, free: 229.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003136/1.433, allocations: 0.9868 MB / 0.9038 GB, free: 229.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005399/1.433, allocations: 50.08 kB / 0.9038 GB, free: 229.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007258/1.441, allocations: 7.1 MB / 0.9108 GB, free: 226.6 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.441, allocations: 3.125 kB / 0.9108 GB, free: 226.6 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01116/1.452, allocations: 8.7 MB / 0.9193 GB, free: 223.4 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/1.453, allocations: 0.4963 MB / 0.9197 GB, free: 223.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006399/1.454, allocations: 43.67 kB / 0.9198 GB, free: 223.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/1.456, allocations: 182.5 kB / 0.92 GB, free: 223.3 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004174/1.456, allocations: 149.9 kB / 0.9201 GB, free: 223.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001896/1.456, allocations: 76.95 kB / 0.9202 GB, free: 223.2 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.005126/1.462, allocations: 3.132 MB / 0.9232 GB, free: 222.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.01e-07/1.462, allocations: 1.375 kB / 0.9232 GB, free: 222.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006422/1.468, allocations: 1.373 MB / 0.9246 GB, free: 222 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 (227): * Single equations (assignments): 222 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006116/1.469, allocations: 190.3 kB / 0.9248 GB, free: 221.9 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01169/1.48, allocations: 7.263 MB / 0.9319 GB, free: 219.3 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.48, allocations: 1.312 kB / 0.9319 GB, free: 219.3 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003676/1.484, allocations: 2.552 MB / 0.9343 GB, free: 218.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004006/1.488, allocations: 0.5659 MB / 0.9349 GB, free: 218 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/1.507, allocations: 15.5 MB / 0.95 GB, free: 210.4 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003778/1.511, allocations: 4.082 MB / 0.954 GB, free: 209 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/1.513, allocations: 377.7 kB / 0.9544 GB, free: 208.8 MB / 0.5886 GB Notification: Performance of SimCode: time 9.82e-07/1.513, allocations: 4 kB / 0.9544 GB, free: 208.8 MB / 0.5886 GB Notification: Performance of Templates: time 0.1179/1.631, allocations: 123.6 MB / 1.075 GB, free: 86.77 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithMass/LineForceWithMass.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches