Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001229, allocations: 118.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001381/0.001381, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001285, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.246, allocations: 50.55 MB / 408.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01641/0.2624, allocations: 17.23 MB / 426 MB, free: 392 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.2744, allocations: 5.492 MB / 431.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002975/0.2774, allocations: 115.6 kB / 431.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008482/0.2859, allocations: 4.349 MB / 436 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006953/0.2929, allocations: 2.711 MB / 438.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003354/0.2963, allocations: 1.455 MB / 440.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01111/0.3074, allocations: 8.652 MB / 448.8 MB, free: 9.547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007231/0.3147, allocations: 5.367 MB / 454.1 MB, free: 4.102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004374/0.3191, allocations: 2.656 MB / 456.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005753/0.3249, allocations: 3.84 MB / 460.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001692/0.3266, allocations: 0.5352 MB / 461.2 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003964/0.3306, allocations: 1.615 MB / 462.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004307/0.3349, allocations: 3.351 MB / 466.1 MB, free: 8.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005911/0.3409, allocations: 3.772 MB / 469.9 MB, free: 4.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.3547, allocations: 11.49 MB / 481.4 MB, free: 8.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3547, allocations: 4 kB / 481.4 MB, free: 8.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3547, allocations: 0 / 481.4 MB, free: 8.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003745/0.3551, allocations: 0 / 481.4 MB, free: 8.746 MB / 398.1 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.02331/0.3785, allocations: 8.475 MB / 489.9 MB, free: 188 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3785, allocations: 16.03 kB / 489.9 MB, free: 172 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002492/0.381, allocations: 1.083 MB / 491 MB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1536/0.5346, allocations: 12.89 MB / 0.4921 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01409/0.5488, allocations: 6.176 MB / 0.4981 GB, free: 11.89 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003808/0.5492, allocations: 369.4 kB / 0.4984 GB, free: 11.53 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002487/0.5517, allocations: 0.519 MB / 0.4989 GB, free: 11.01 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03504/0.5868, allocations: 16.11 MB / 0.5147 GB, free: 9.832 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003716/0.5872, allocations: 79.3 kB / 0.5148 GB, free: 9.754 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001814/0.589, allocations: 235.8 kB / 0.515 GB, free: 9.523 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004799/0.5938, allocations: 2.919 MB / 0.5178 GB, free: 6.602 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03006/0.624, allocations: 13.45 MB / 0.531 GB, free: 9.121 MB / 462.1 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.3345/0.9585, allocations: 63.89 MB / 0.5934 GB, free: 72.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02059/0.9791, allocations: 7.764 MB / 0.6009 GB, free: 65.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00454/0.9837, allocations: 4.138 MB / 0.605 GB, free: 61.62 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02449/1.008, allocations: 18.8 MB / 0.6234 GB, free: 42.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/1.008, allocations: 64.55 kB / 0.6234 GB, free: 42.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=287): time 7.074e-06/1.008, allocations: 0 / 0.6234 GB, free: 42.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=370): time 0.1716/1.18, allocations: 50.7 MB / 0.6729 GB, free: 7.469 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/1.18, allocations: 269.8 kB / 0.6732 GB, free: 7.148 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0131/1.193, allocations: 6.072 MB / 0.6791 GB, free: 1.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000885/1.194, allocations: 81.7 kB / 0.6792 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004138/1.198, allocations: 4.739 MB / 0.6838 GB, free: 12.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002287/1.201, allocations: 1.365 MB / 0.6851 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00488/1.206, allocations: 1.825 MB / 0.6869 GB, free: 9.031 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002082/1.206, allocations: 301.1 kB / 0.6872 GB, free: 8.734 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00689/1.213, allocations: 3.934 MB / 0.6911 GB, free: 4.793 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01034/1.223, allocations: 9.165 MB / 0.7 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01815/1.241, allocations: 14.16 MB / 0.7138 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001571/1.241, allocations: 55.94 kB / 0.7139 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03718/1.279, allocations: 16.38 MB / 0.7299 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002038/1.279, allocations: 84 kB / 0.73 GB, free: 7.738 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002622/1.279, allocations: 184.9 kB / 0.7301 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01384/1.293, allocations: 4.036 MB / 0.7341 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007572/1.301, allocations: 2.066 MB / 0.7361 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2279/1.529, allocations: 23.49 MB / 0.759 GB, free: 169.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007307/1.536, allocations: 0.5005 MB / 0.7595 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001325/1.537, allocations: 0.5303 MB / 0.76 GB, free: 169.4 MB / 0.5294 GB 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,44,100.0%), (4,48,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005483/1.543, allocations: 3.135 MB / 0.7631 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.544, allocations: 0.5717 MB / 0.7637 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01985/1.564, allocations: 9.831 MB / 0.7733 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.161e-05/1.564, allocations: 47.31 kB / 0.7733 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.632e-05/1.564, allocations: 16 kB / 0.7733 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.268e-05/1.564, allocations: 19.36 kB / 0.7733 GB, free: 165 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03424/1.598, allocations: 19.41 MB / 0.7923 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.693e-05/1.598, allocations: 0 / 0.7923 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002841/1.601, allocations: 0.5379 MB / 0.7928 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01136/1.612, allocations: 3.626 MB / 0.7964 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005634/1.613, allocations: 59.98 kB / 0.7964 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02483/1.638, allocations: 21.35 MB / 0.8173 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/1.638, allocations: 4 kB / 0.8173 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02322/1.661, allocations: 14.49 MB / 0.8314 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/1.662, allocations: 0.5835 MB / 0.832 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001594/1.664, allocations: 63.61 kB / 0.8321 GB, free: 105.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003241/1.667, allocations: 207.7 kB / 0.8323 GB, free: 105.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006969/1.668, allocations: 220.2 kB / 0.8325 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002482/1.668, allocations: 96.02 kB / 0.8326 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004733/1.673, allocations: 3.799 MB / 0.8363 GB, free: 101 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.81e-07/1.673, allocations: 0 / 0.8363 GB, free: 101 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00757/1.681, allocations: 1.821 MB / 0.8381 GB, free: 99.21 MB / 0.5294 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 (270): * Single equations (assignments): 265 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,43,100.0%), (1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02372/1.704, allocations: 15.27 MB / 0.853 GB, free: 83.89 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01331/1.718, allocations: 10 MB / 0.8627 GB, free: 73.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/1.718, allocations: 6.625 kB / 0.8627 GB, free: 73.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004808/1.723, allocations: 3.938 MB / 0.8666 GB, free: 69.95 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/1.728, allocations: 0.8192 MB / 0.8674 GB, free: 69.14 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.341/2.069, allocations: 83.23 MB / 0.9487 GB, free: 187.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006664/2.076, allocations: 4.856 MB / 0.9534 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006496/2.082, allocations: 2.795 MB / 0.9561 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004242/2.086, allocations: 3.24 MB / 0.9593 GB, free: 184.7 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/2.086, allocations: 3.719 kB / 0.9593 GB, free: 184.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3494/2.436, allocations: 135.7 MB / 1.092 GB, free: 54.61 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 47.62/50.05, allocations: 7.938 kB / 1.092 GB, free: 54.61 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches