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.001484/0.001484, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.5 MB / 243.1 MB, free: 12.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008522/0.0008523, allocations: 96.19 kB / 295.1 MB, free: 4.387 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1724/0.1724, allocations: 44.84 MB / 392 MB, free: 11.43 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002455, allocations: 8 kB / 464.7 MB, free: 68.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08194/0.0822, allocations: 62.95 MB / 0.5153 GB, free: 5.16 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.2343/0.3165, allocations: 57.96 MB / 0.5719 GB, free: 9.438 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02419/0.3408, allocations: 12.46 MB / 0.5841 GB, free: 4.832 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01354/0.3544, allocations: 283.5 kB / 0.5844 GB, free: 4.785 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009065/0.3635, allocations: 2.981 MB / 0.5873 GB, free: 3.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0246/0.3881, allocations: 8.841 MB / 0.5959 GB, free: 13.39 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003999/0.3921, allocations: 1.006 MB / 0.5969 GB, free: 12.75 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.06824/0.4604, allocations: 62.58 MB / 0.658 GB, free: 0.7969 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00897/0.4694, allocations: 5.564 MB / 0.6634 GB, free: 11.18 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003896/0.4733, allocations: 1.829 MB / 0.6652 GB, free: 9.344 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00434/0.4777, allocations: 2.839 MB / 0.668 GB, free: 6.496 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001262/0.479, allocations: 204 kB / 0.6682 GB, free: 6.297 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003151/0.4821, allocations: 1.143 MB / 0.6693 GB, free: 5.152 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00325/0.4854, allocations: 2.392 MB / 0.6716 GB, free: 2.754 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002/0.4874, allocations: 1.096 MB / 0.6727 GB, free: 1.648 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008723/0.4962, allocations: 7.205 MB / 0.6798 GB, free: 10.42 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/0.4962, allocations: 4 kB / 0.6798 GB, free: 10.42 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4962, allocations: 0 / 0.6798 GB, free: 10.42 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003429/0.4966, allocations: 0 / 0.6798 GB, free: 10.42 MB / 474.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.01287/0.5095, allocations: 5.681 MB / 0.6853 GB, free: 4.664 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.5095, allocations: 12.03 kB / 0.6853 GB, free: 4.652 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0241/0.5336, allocations: 3.374 MB / 0.6886 GB, free: 1.266 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.5438, allocations: 3.965 MB / 0.6925 GB, free: 13.24 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/0.5442, allocations: 311.9 kB / 0.6928 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002059/0.5463, allocations: 427.6 kB / 0.6932 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03002/0.5764, allocations: 13.81 MB / 0.7067 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002675/0.5767, allocations: 59.42 kB / 0.7067 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001393/0.5781, allocations: 203.8 kB / 0.7069 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004213/0.5823, allocations: 2.523 MB / 0.7094 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02464/0.607, allocations: 11.77 MB / 0.7209 GB, free: 15.26 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2859/0.893, allocations: 53.73 MB / 0.7734 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01554/0.9086, allocations: 5.909 MB / 0.7791 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004286/0.9129, allocations: 3.578 MB / 0.7826 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01978/0.9327, allocations: 15.45 MB / 0.7977 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.183e-05/0.9328, allocations: 63.16 kB / 0.7978 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=230): time 7.914e-06/0.9328, allocations: 0 / 0.7978 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=267): time 0.07466/1.007, allocations: 28.65 MB / 0.8257 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/1.008, allocations: 257.3 kB / 0.826 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004942/1.013, allocations: 5.029 MB / 0.8309 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004103/1.013, allocations: 61.7 kB / 0.831 GB, free: 114.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001555/1.015, allocations: 3.895 MB / 0.8348 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008228/1.015, allocations: 1.003 MB / 0.8357 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/1.016, allocations: 157.1 kB / 0.8359 GB, free: 109 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002513/1.016, allocations: 0.6207 MB / 0.8365 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003224/1.019, allocations: 2.982 MB / 0.8394 GB, free: 105.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00437/1.024, allocations: 7.309 MB / 0.8465 GB, free: 96.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004709/1.028, allocations: 4.538 MB / 0.851 GB, free: 91.59 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.61e-05/1.028, allocations: 40 kB / 0.851 GB, free: 91.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.0135/1.042, allocations: 11.13 MB / 0.8619 GB, free: 80.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/1.042, allocations: 68 kB / 0.862 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.094e-05/1.042, allocations: 152.9 kB / 0.8621 GB, free: 80.19 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002471/1.044, allocations: 1.245 MB / 0.8633 GB, free: 78.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005009/1.049, allocations: 1.829 MB / 0.8651 GB, free: 77.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006749/1.056, allocations: 7.769 MB / 0.8727 GB, free: 69.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004995/1.061, allocations: 431.3 kB / 0.8731 GB, free: 68.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005586/1.062, allocations: 453.1 kB / 0.8735 GB, free: 68.22 MB / 0.5261 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.003097/1.065, allocations: 2.636 MB / 0.8761 GB, free: 65.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000638/1.066, allocations: 462 kB / 0.8765 GB, free: 65.11 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006773/1.072, allocations: 5.219 MB / 0.8816 GB, free: 59.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-05/1.072, allocations: 30.03 kB / 0.8817 GB, free: 59.85 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/1.072, allocations: 4 kB / 0.8817 GB, free: 59.84 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/1.072, allocations: 15.95 kB / 0.8817 GB, free: 59.83 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01531/1.088, allocations: 11.74 MB / 0.8932 GB, free: 48.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/1.088, allocations: 4 kB / 0.8932 GB, free: 48.08 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.09, allocations: 0.4914 MB / 0.8936 GB, free: 47.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/1.092, allocations: 0.9989 MB / 0.8946 GB, free: 46.59 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/1.092, allocations: 40 kB / 0.8947 GB, free: 46.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006109/1.098, allocations: 7.105 MB / 0.9016 GB, free: 39.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.098, allocations: 8.047 kB / 0.9016 GB, free: 39.17 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009547/1.108, allocations: 8.704 MB / 0.9101 GB, free: 30.39 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009487/1.109, allocations: 0.4952 MB / 0.9106 GB, free: 29.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004697/1.109, allocations: 41.33 kB / 0.9106 GB, free: 29.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/1.111, allocations: 183.8 kB / 0.9108 GB, free: 29.65 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002606/1.112, allocations: 149.7 kB / 0.9109 GB, free: 29.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.112, allocations: 73 kB / 0.911 GB, free: 29.44 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003491/1.115, allocations: 3.13 MB / 0.9141 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/1.115, allocations: 0 / 0.9141 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004653/1.12, allocations: 1.371 MB / 0.9154 GB, free: 24.95 MB / 0.5261 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.0003819/1.12, allocations: 191.6 kB / 0.9156 GB, free: 24.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00767/1.128, allocations: 7.267 MB / 0.9227 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.128, allocations: 0 / 0.9227 GB, free: 17.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002418/1.13, allocations: 2.552 MB / 0.9252 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002424/1.133, allocations: 0.5743 MB / 0.9257 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/1.149, allocations: 15.5 MB / 0.9409 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003923/1.153, allocations: 4.078 MB / 0.9449 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/1.154, allocations: 379.3 kB / 0.9452 GB, free: 10.35 MB / 0.5417 GB Notification: Performance of SimCode: time 5.82e-07/1.154, allocations: 0 / 0.9452 GB, free: 10.35 MB / 0.5417 GB Notification: Performance of Templates: time 0.3217/1.476, allocations: 123.8 MB / 1.066 GB, free: 91.74 MB / 0.5417 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