Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 191.9 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 226.5 MB / 243.4 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000838/0.000838, allocations: 104.2 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3083/0.3083, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003018/0.0003019, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2952, allocations: 62.96 MB / 0.5159 GB, free: 37.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses): time 0.04877/0.344, allocations: 66.43 MB / 0.5808 GB, free: 5.465 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03624/0.3803, allocations: 14.01 MB / 0.5944 GB, free: 8.836 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01462/0.3949, allocations: 323.2 kB / 0.5947 GB, free: 8.52 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01147/0.4064, allocations: 3.425 MB / 0.5981 GB, free: 5.078 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03562/0.4421, allocations: 10.2 MB / 0.608 GB, free: 10.84 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006492/0.4486, allocations: 1.354 MB / 0.6094 GB, free: 9.48 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.07686/0.5255, allocations: 64.78 MB / 0.6726 GB, free: 8.613 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01056/0.5361, allocations: 6.855 MB / 0.6793 GB, free: 1.672 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2611/0.7973, allocations: 2.241 MB / 0.6815 GB, free: 65.12 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005728/0.803, allocations: 3.683 MB / 0.6851 GB, free: 65.12 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001532/0.8046, allocations: 246.9 kB / 0.6853 GB, free: 65.12 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003813/0.8084, allocations: 1.385 MB / 0.6867 GB, free: 65.12 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003794/0.8123, allocations: 2.986 MB / 0.6896 GB, free: 65.12 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005291/0.8176, allocations: 3.095 MB / 0.6926 GB, free: 65.09 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01318/0.8308, allocations: 8.526 MB / 0.701 GB, free: 64.52 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.8308, allocations: 4.094 kB / 0.701 GB, free: 64.52 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.947e-06/0.8308, allocations: 0 / 0.701 GB, free: 64.52 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000493/0.8313, allocations: 2.906 kB / 0.701 GB, free: 64.52 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.02251/0.8538, allocations: 6.831 MB / 0.7076 GB, free: 61.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.8539, allocations: 9.625 kB / 0.7076 GB, free: 61.67 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02667/0.8806, allocations: 3.761 MB / 0.7113 GB, free: 60.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0135/0.8941, allocations: 5.18 MB / 0.7164 GB, free: 58.32 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002908/0.8945, allocations: 369.7 kB / 0.7167 GB, free: 58.31 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002097/0.8966, allocations: 0.5134 MB / 0.7172 GB, free: 58.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02795/0.9245, allocations: 16.26 MB / 0.7331 GB, free: 50.65 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000247/0.9248, allocations: 84.58 kB / 0.7332 GB, free: 50.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001072/0.9259, allocations: 242.6 kB / 0.7334 GB, free: 50.53 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003953/0.9299, allocations: 2.92 MB / 0.7363 GB, free: 48.13 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02613/0.956, allocations: 13.71 MB / 0.7497 GB, free: 38.46 MB / 490.7 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.0734/1.029, allocations: 64.82 MB / 0.813 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/1.051, allocations: 7.953 MB / 0.8207 GB, free: 7.945 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00629/1.058, allocations: 4.344 MB / 0.825 GB, free: 3.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03198/1.09, allocations: 19.36 MB / 0.8439 GB, free: 15.77 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.068e-05/1.09, allocations: 64.56 kB / 0.8439 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=290): time 5.33e-06/1.09, allocations: 0 / 0.8439 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=372): time 0.3981/1.488, allocations: 50.48 MB / 0.8932 GB, free: 216.1 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/1.488, allocations: 281 kB / 0.8935 GB, free: 215.8 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01047/1.499, allocations: 6.012 MB / 0.8994 GB, free: 214.6 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0009823/1.5, allocations: 81.98 kB / 0.8995 GB, free: 214.5 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002588/1.502, allocations: 4.664 MB / 0.904 GB, free: 211.7 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001684/1.504, allocations: 1.37 MB / 0.9054 GB, free: 210.7 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006976/1.505, allocations: 195.3 kB / 0.9055 GB, free: 210.5 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0004352/1.505, allocations: 0.7105 MB / 0.9062 GB, free: 210 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006112/1.511, allocations: 4.185 MB / 0.9103 GB, free: 208.6 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009869/1.521, allocations: 9.422 MB / 0.9195 GB, free: 200.2 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01638/1.538, allocations: 14.59 MB / 0.9338 GB, free: 189.1 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002214/1.538, allocations: 50.47 kB / 0.9338 GB, free: 189.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=1256) (initialization): time 0.03289/1.571, allocations: 17.51 MB / 0.9509 GB, free: 183.1 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001164/1.571, allocations: 80.03 kB / 0.951 GB, free: 183.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/1.571, allocations: 188.1 kB / 0.9512 GB, free: 182.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01329/1.584, allocations: 4.576 MB / 0.9556 GB, free: 179.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007046/1.591, allocations: 2.135 MB / 0.9577 GB, free: 177.9 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02887/1.62, allocations: 23.73 MB / 0.9809 GB, free: 155.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007869/1.628, allocations: 0.5195 MB / 0.9814 GB, free: 154.8 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001548/1.63, allocations: 0.536 MB / 0.9819 GB, free: 154.3 MB / 0.573 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 (1136): * Single equations (assignments): 1131 * 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%) 44,(2,100.0%) 50} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005907/1.636, allocations: 3.126 MB / 0.985 GB, free: 151.1 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001171/1.637, allocations: 0.5669 MB / 0.9855 GB, free: 150.6 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02029/1.657, allocations: 10.73 MB / 0.996 GB, free: 139.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.348e-05/1.657, allocations: 37.41 kB / 0.996 GB, free: 139.7 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.281e-05/1.657, allocations: 20 kB / 0.9961 GB, free: 139.7 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-05/1.657, allocations: 19.92 kB / 0.9961 GB, free: 139.7 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03949/1.697, allocations: 20.54 MB / 1.016 GB, free: 119.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/1.697, allocations: 0 / 1.016 GB, free: 119.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002817/1.7, allocations: 0.5344 MB / 1.017 GB, free: 118.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01264/1.713, allocations: 4.225 MB / 1.021 GB, free: 114.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009008/1.713, allocations: 65.55 kB / 1.021 GB, free: 114.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02666/1.74, allocations: 21.54 MB / 1.042 GB, free: 92.44 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.74, allocations: 1.328 kB / 1.042 GB, free: 92.44 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02583/1.766, allocations: 15.64 MB / 1.057 GB, free: 76.72 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/1.768, allocations: 0.5952 MB / 1.058 GB, free: 76.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001387/1.769, allocations: 63.88 kB / 1.058 GB, free: 76.04 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003245/1.773, allocations: 226.1 kB / 1.058 GB, free: 75.82 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008503/1.773, allocations: 234.1 kB / 1.058 GB, free: 75.59 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002955/1.774, allocations: 95.98 kB / 1.058 GB, free: 75.5 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.006584/1.78, allocations: 3.734 MB / 1.062 GB, free: 71.77 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.7e-07/1.78, allocations: 1.641 kB / 1.062 GB, free: 71.77 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01047/1.791, allocations: 1.935 MB / 1.064 GB, free: 69.84 MB / 0.573 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 (272): * Single equations (assignments): 267 * 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.001002/1.792, allocations: 206 kB / 1.064 GB, free: 69.63 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01513/1.807, allocations: 10.46 MB / 1.074 GB, free: 59.16 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/1.807, allocations: 4 kB / 1.074 GB, free: 59.16 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005447/1.812, allocations: 4.112 MB / 1.078 GB, free: 55.02 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005682/1.818, allocations: 0.7283 MB / 1.079 GB, free: 54.29 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02782/1.846, allocations: 19.56 MB / 1.098 GB, free: 34.68 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006047/1.852, allocations: 4.831 MB / 1.103 GB, free: 29.82 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001964/1.854, allocations: 447.4 kB / 1.103 GB, free: 29.39 MB / 0.573 GB Notification: Performance of SimCode: time 7.41e-07/1.854, allocations: 0 / 1.103 GB, free: 29.39 MB / 0.573 GB Notification: Performance of Templates: time 0.3975/2.252, allocations: 152.3 MB / 1.252 GB, free: 87.15 MB / 0.573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches