Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008777/0.0008777, allocations: 194 kB / 17.38 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.18/1.18, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000744/0.0007439, allocations: 96.16 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002042/0.0002042, allocations: 8 kB / 356.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1766, allocations: 51.28 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.04584/0.2225, allocations: 66.41 MB / 474.5 MB, free: 9.086 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02579/0.2483, allocations: 14.01 MB / 488.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009842/0.2582, allocations: 323.2 kB / 488.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008027/0.2663, allocations: 3.417 MB / 492.3 MB, free: 7.293 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0222/0.2885, allocations: 10.21 MB / 0.4907 GB, free: 13.05 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004359/0.2929, allocations: 1.354 MB / 0.492 GB, free: 11.69 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.2429/0.5358, allocations: 64.77 MB / 0.5553 GB, free: 12.51 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009165/0.545, allocations: 6.862 MB / 0.562 GB, free: 7.566 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003959/0.549, allocations: 2.233 MB / 0.5642 GB, free: 6.035 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004336/0.5534, allocations: 3.68 MB / 0.5678 GB, free: 3.371 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009433/0.5544, allocations: 248 kB / 0.568 GB, free: 3.129 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002685/0.5571, allocations: 1.388 MB / 0.5694 GB, free: 2.051 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002534/0.5596, allocations: 2.973 MB / 0.5723 GB, free: 15.88 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003514/0.5631, allocations: 3.214 MB / 0.5754 GB, free: 14.69 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007915/0.5711, allocations: 8.857 MB / 0.584 GB, free: 6.973 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.5711, allocations: 0 / 0.584 GB, free: 6.973 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5711, allocations: 0 / 0.584 GB, free: 6.973 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002132/0.5713, allocations: 0 / 0.584 GB, free: 6.973 MB / 410.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.01559/0.5869, allocations: 7.08 MB / 0.591 GB, free: 444 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.587, allocations: 12.03 kB / 0.591 GB, free: 432 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002043/0.589, allocations: 1.08 MB / 0.592 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1595/0.7485, allocations: 13.25 MB / 0.605 GB, free: 2.949 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01192/0.7605, allocations: 6.056 MB / 0.6109 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.7607, allocations: 368.4 kB / 0.6112 GB, free: 14.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/0.7619, allocations: 0.513 MB / 0.6117 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.7866, allocations: 16.12 MB / 0.6275 GB, free: 1.078 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001749/0.7869, allocations: 81.58 kB / 0.6276 GB, free: 1.031 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005647/0.7874, allocations: 239.6 kB / 0.6278 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004091/0.7915, allocations: 2.928 MB / 0.6306 GB, free: 14.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0241/0.8156, allocations: 13.44 MB / 0.6438 GB, free: 5.062 MB / 458.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.2281/1.044, allocations: 64.18 MB / 0.7064 GB, free: 151.4 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01873/1.063, allocations: 7.839 MB / 0.7141 GB, free: 150.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004024/1.067, allocations: 4.125 MB / 0.7181 GB, free: 149.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02111/1.088, allocations: 18.71 MB / 0.7364 GB, free: 137.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/1.088, allocations: 72.09 kB / 0.7365 GB, free: 137 MB / 490.7 MB Notification: Performance of pre-optimization done (n=287): time 5.029e-06/1.088, allocations: 0 / 0.7365 GB, free: 137 MB / 490.7 MB Notification: Performance of matching and sorting (n=370): time 0.1528/1.241, allocations: 51.34 MB / 0.7866 GB, free: 85.94 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/1.241, allocations: 277.5 kB / 0.7869 GB, free: 85.61 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006823/1.248, allocations: 6.039 MB / 0.7928 GB, free: 79.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006227/1.248, allocations: 81.7 kB / 0.7928 GB, free: 79.49 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001883/1.25, allocations: 4.745 MB / 0.7975 GB, free: 74.75 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001102/1.251, allocations: 1.358 MB / 0.7988 GB, free: 73.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004124/1.252, allocations: 184 kB / 0.799 GB, free: 73.22 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002892/1.252, allocations: 0.6986 MB / 0.7997 GB, free: 72.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004306/1.256, allocations: 3.887 MB / 0.8035 GB, free: 68.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005932/1.262, allocations: 9.122 MB / 0.8124 GB, free: 57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/1.274, allocations: 14.1 MB / 0.8261 GB, free: 40.73 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-05/1.274, allocations: 52 kB / 0.8262 GB, free: 40.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.02673/1.301, allocations: 16.34 MB / 0.8421 GB, free: 24.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.073e-05/1.301, allocations: 88 kB / 0.8422 GB, free: 24.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001241/1.301, allocations: 180 kB / 0.8424 GB, free: 24.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01163/1.313, allocations: 4.082 MB / 0.8464 GB, free: 19.94 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006086/1.319, allocations: 2.062 MB / 0.8484 GB, free: 17.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1836/1.502, allocations: 21.94 MB / 0.8698 GB, free: 169.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006221/1.509, allocations: 0.5021 MB / 0.8703 GB, free: 169.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009452/1.51, allocations: 0.533 MB / 0.8708 GB, free: 169.4 MB / 490.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.004268/1.514, allocations: 3.114 MB / 0.8739 GB, free: 169 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008281/1.515, allocations: 0.5781 MB / 0.8744 GB, free: 169 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/1.532, allocations: 9.845 MB / 0.8841 GB, free: 165.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.75e-05/1.532, allocations: 39.02 kB / 0.8841 GB, free: 165.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.227e-05/1.533, allocations: 19 kB / 0.8841 GB, free: 165.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.861e-05/1.533, allocations: 20.92 kB / 0.8841 GB, free: 165.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03089/1.563, allocations: 19.57 MB / 0.9032 GB, free: 158.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.952e-05/1.564, allocations: 4 kB / 0.9032 GB, free: 158.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002533/1.566, allocations: 0.5324 MB / 0.9038 GB, free: 157.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01128/1.577, allocations: 3.664 MB / 0.9073 GB, free: 154.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006407/1.578, allocations: 63.98 kB / 0.9074 GB, free: 154 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02408/1.602, allocations: 19.91 MB / 0.9268 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.602, allocations: 4 kB / 0.9268 GB, free: 134.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02342/1.626, allocations: 14.47 MB / 0.941 GB, free: 119.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/1.627, allocations: 0.5876 MB / 0.9415 GB, free: 119.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001227/1.628, allocations: 60 kB / 0.9416 GB, free: 119.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003038/1.631, allocations: 203.3 kB / 0.9418 GB, free: 119 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009/1.632, allocations: 235.2 kB / 0.942 GB, free: 118.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002556/1.632, allocations: 95.98 kB / 0.9421 GB, free: 118.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004293/1.637, allocations: 3.766 MB / 0.9458 GB, free: 114.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.637, allocations: 0 / 0.9458 GB, free: 114.9 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005957/1.643, allocations: 1.858 MB / 0.9476 GB, free: 113.1 MB / 490.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.02168/1.664, allocations: 15.24 MB / 0.9625 GB, free: 97.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01163/1.676, allocations: 9.943 MB / 0.9722 GB, free: 87.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.676, allocations: 0 / 0.9722 GB, free: 87.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004307/1.68, allocations: 3.934 MB / 0.976 GB, free: 83.95 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004266/1.685, allocations: 0.7773 MB / 0.9768 GB, free: 83.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08741/1.772, allocations: 67.54 MB / 1.043 GB, free: 10.29 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1551/1.927, allocations: 4.859 MB / 1.048 GB, free: 170.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004056/1.931, allocations: 3.309 MB / 1.051 GB, free: 170.1 MB / 490.7 MB Notification: Performance of SimCode: time 7.81e-07/1.931, allocations: 1.375 kB / 1.051 GB, free: 170.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.32/12.25, allocations: 177 MB / 1.224 GB, free: 145.8 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/LineForceWithTwoMasses/LineForceWithTwoMasses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches