Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008445/0.0008445, allocations: 175.1 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.144/1.144, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007125/0.0007125, allocations: 82.38 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003005, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.1894, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.04311/0.2326, allocations: 66.43 MB / 441.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02719/0.2598, allocations: 13.99 MB / 455.6 MB, free: 56 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009685/0.2695, allocations: 327.2 kB / 455.9 MB, free: 15.73 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008875/0.2784, allocations: 3.425 MB / 459.4 MB, free: 12.29 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02252/0.301, allocations: 10.22 MB / 469.6 MB, free: 2.035 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004589/0.3056, allocations: 1.354 MB / 470.9 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.2/0.5057, allocations: 37.38 MB / 0.4964 GB, free: 30.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008057/0.5138, allocations: 6.866 MB / 0.5031 GB, free: 30.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003858/0.5177, allocations: 2.261 MB / 0.5053 GB, free: 30.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005449/0.5231, allocations: 3.693 MB / 0.5089 GB, free: 30.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.5243, allocations: 249.7 kB / 0.5092 GB, free: 30.22 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003322/0.5276, allocations: 1.4 MB / 0.5105 GB, free: 30.22 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003339/0.531, allocations: 2.988 MB / 0.5134 GB, free: 30.22 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004411/0.5354, allocations: 3.231 MB / 0.5166 GB, free: 30.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.5469, allocations: 8.896 MB / 0.5253 GB, free: 27.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.5469, allocations: 0 / 0.5253 GB, free: 27.01 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.915e-06/0.5469, allocations: 0 / 0.5253 GB, free: 27.01 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003106/0.5473, allocations: 0 / 0.5253 GB, free: 27.01 MB / 378.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.02285/0.5701, allocations: 7.112 MB / 0.5322 GB, free: 22.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.5702, allocations: 7.938 kB / 0.5322 GB, free: 22.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003385/0.5736, allocations: 1.082 MB / 0.5333 GB, free: 22.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1761/0.7497, allocations: 13.25 MB / 0.5462 GB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/0.762, allocations: 7.092 MB / 0.5532 GB, free: 4.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.7622, allocations: 370.2 kB / 0.5535 GB, free: 4.621 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.7632, allocations: 0.5137 MB / 0.554 GB, free: 4.277 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02434/0.7876, allocations: 16.12 MB / 0.5698 GB, free: 7.508 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001763/0.7878, allocations: 87.42 kB / 0.5698 GB, free: 7.457 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006458/0.7885, allocations: 235 kB / 0.5701 GB, free: 7.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005175/0.7937, allocations: 2.928 MB / 0.5729 GB, free: 4.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02703/0.8207, allocations: 13.44 MB / 0.5861 GB, free: 11.5 MB / 410.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.07713/0.8979, allocations: 64.25 MB / 0.6488 GB, free: 1.039 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02105/0.9189, allocations: 7.845 MB / 0.6565 GB, free: 9.055 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005366/0.9243, allocations: 4.131 MB / 0.6605 GB, free: 4.91 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1698/1.094, allocations: 18.73 MB / 0.6788 GB, free: 185.2 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.616e-05/1.094, allocations: 61.39 kB / 0.6788 GB, free: 185.2 MB / 474.7 MB Notification: Performance of pre-optimization done (n=287): time 5.791e-06/1.094, allocations: 0 / 0.6788 GB, free: 185.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=370): time 0.1545/1.249, allocations: 51.56 MB / 0.7292 GB, free: 147.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/1.249, allocations: 281.7 kB / 0.7295 GB, free: 147.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006522/1.255, allocations: 6.098 MB / 0.7354 GB, free: 141 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006152/1.256, allocations: 86.42 kB / 0.7355 GB, free: 140.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001788/1.258, allocations: 4.742 MB / 0.7401 GB, free: 136.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00102/1.259, allocations: 1.374 MB / 0.7415 GB, free: 134.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003973/1.259, allocations: 184 kB / 0.7416 GB, free: 134.6 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002875/1.26, allocations: 0.6946 MB / 0.7423 GB, free: 133.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004218/1.264, allocations: 3.891 MB / 0.7461 GB, free: 130 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005599/1.269, allocations: 9.125 MB / 0.755 GB, free: 118.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/1.281, allocations: 14.1 MB / 0.7688 GB, free: 101.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.6e-05/1.281, allocations: 52 kB / 0.7688 GB, free: 101.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.0276/1.309, allocations: 16.35 MB / 0.7848 GB, free: 85.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.896e-05/1.309, allocations: 84 kB / 0.7849 GB, free: 85.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/1.309, allocations: 184 kB / 0.7851 GB, free: 84.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01149/1.32, allocations: 4.083 MB / 0.7891 GB, free: 80.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006246/1.327, allocations: 2.066 MB / 0.7911 GB, free: 78.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02514/1.352, allocations: 21.95 MB / 0.8125 GB, free: 56.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006536/1.358, allocations: 0.5071 MB / 0.813 GB, free: 56.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/1.36, allocations: 0.5312 MB / 0.8135 GB, free: 55.52 MB / 474.7 MB 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 (1088): * Single equations (assignments): 1083 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004546/1.364, allocations: 3.123 MB / 0.8166 GB, free: 52.38 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009103/1.365, allocations: 0.5786 MB / 0.8171 GB, free: 51.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01758/1.383, allocations: 9.844 MB / 0.8268 GB, free: 41.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/1.383, allocations: 43.98 kB / 0.8268 GB, free: 41.85 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.075e-05/1.383, allocations: 18.06 kB / 0.8268 GB, free: 41.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.829e-05/1.383, allocations: 19.88 kB / 0.8268 GB, free: 41.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1741/1.557, allocations: 19.59 MB / 0.846 GB, free: 167.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-05/1.557, allocations: 7.875 kB / 0.846 GB, free: 167.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002708/1.56, allocations: 0.5298 MB / 0.8465 GB, free: 167.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01188/1.572, allocations: 3.664 MB / 0.8501 GB, free: 167.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005466/1.572, allocations: 63.42 kB / 0.8501 GB, free: 167.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02465/1.597, allocations: 19.89 MB / 0.8695 GB, free: 160.4 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.597, allocations: 3.609 kB / 0.8695 GB, free: 160.4 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02212/1.619, allocations: 14.47 MB / 0.8837 GB, free: 155.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002406/1.622, allocations: 1.145 MB / 0.8848 GB, free: 155.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007225/1.622, allocations: 55.81 kB / 0.8848 GB, free: 155.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002489/1.625, allocations: 207.4 kB / 0.885 GB, free: 155 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008729/1.626, allocations: 234.7 kB / 0.8853 GB, free: 155 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/1.626, allocations: 89.83 kB / 0.8854 GB, free: 155 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004412/1.63, allocations: 3.811 MB / 0.8891 GB, free: 153.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.63, allocations: 3.375 kB / 0.8891 GB, free: 153.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006515/1.637, allocations: 1.852 MB / 0.8909 GB, free: 152 MB / 474.7 MB 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 (270): * Single equations (assignments): 265 * 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.02229/1.659, allocations: 15.25 MB / 0.9058 GB, free: 137.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01246/1.672, allocations: 9.941 MB / 0.9155 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/1.672, allocations: 0 / 0.9155 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004805/1.677, allocations: 3.932 MB / 0.9193 GB, free: 123.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005427/1.682, allocations: 0.7652 MB / 0.9201 GB, free: 122.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09878/1.781, allocations: 67.96 MB / 0.9864 GB, free: 49.29 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006115/1.787, allocations: 4.887 MB / 0.9912 GB, free: 44.37 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00403/1.791, allocations: 3.327 MB / 0.9945 GB, free: 41.04 MB / 474.7 MB Notification: Performance of SimCode: time 6.61e-07/1.791, allocations: 0 / 0.9945 GB, free: 41.04 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.72/12.51, allocations: 177.7 MB / 1.168 GB, free: 50.32 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches