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.001156/0.001156, allocations: 122.8 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001173/0.001173, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2562, allocations: 50.54 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.01839/0.2746, allocations: 17.24 MB / 426 MB, free: 192 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.2864, allocations: 5.482 MB / 431.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003396/0.2898, allocations: 119.6 kB / 431.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008438/0.2983, allocations: 4.349 MB / 436 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007209/0.3055, allocations: 2.793 MB / 438.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003405/0.309, allocations: 1.459 MB / 440.2 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01274/0.3217, allocations: 8.659 MB / 448.9 MB, free: 9.266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008335/0.3301, allocations: 5.359 MB / 454.2 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005767/0.3359, allocations: 2.656 MB / 456.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00606/0.342, allocations: 3.844 MB / 460.7 MB, free: 13.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001934/0.344, allocations: 0.5352 MB / 461.3 MB, free: 12.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004241/0.3482, allocations: 1.619 MB / 462.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004671/0.3529, allocations: 3.343 MB / 466.2 MB, free: 7.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006621/0.3596, allocations: 3.775 MB / 470 MB, free: 4.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01522/0.3748, allocations: 11.54 MB / 481.5 MB, free: 8.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.3749, allocations: 0 / 481.5 MB, free: 8.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3749, allocations: 3.938 kB / 481.5 MB, free: 8.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004637/0.3753, allocations: 4 kB / 481.5 MB, free: 8.41 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.02583/0.4012, allocations: 8.682 MB / 490.2 MB, free: 15.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.4013, allocations: 12.03 kB / 490.2 MB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003031/0.4043, allocations: 1.079 MB / 491.3 MB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.169/0.5734, allocations: 12.94 MB / 0.4924 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01549/0.5889, allocations: 6.217 MB / 0.4985 GB, free: 11.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003564/0.5893, allocations: 365.5 kB / 0.4989 GB, free: 10.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002277/0.5916, allocations: 0.5152 MB / 0.4994 GB, free: 10.4 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03426/0.6258, allocations: 16.11 MB / 0.5151 GB, free: 9.219 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003674/0.6263, allocations: 75.41 kB / 0.5152 GB, free: 9.145 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001765/0.628, allocations: 239.8 kB / 0.5154 GB, free: 8.91 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00503/0.6331, allocations: 2.927 MB / 0.5183 GB, free: 5.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02954/0.6627, allocations: 13.45 MB / 0.5314 GB, free: 8.508 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.3132/0.9759, allocations: 64 MB / 0.5939 GB, free: 72.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01988/0.9958, allocations: 7.753 MB / 0.6015 GB, free: 64.67 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004361/1, allocations: 4.138 MB / 0.6055 GB, free: 60.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02497/1.025, allocations: 18.83 MB / 0.6239 GB, free: 41.31 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/1.025, allocations: 64.5 kB / 0.624 GB, free: 41.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=287): time 7.855e-06/1.025, allocations: 4 kB / 0.624 GB, free: 41.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=370): time 0.169/1.194, allocations: 51.05 MB / 0.6738 GB, free: 6.426 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000163/1.195, allocations: 265.8 kB / 0.6741 GB, free: 6.109 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/1.207, allocations: 6.085 MB / 0.68 GB, free: 128 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009265/1.208, allocations: 85.7 kB / 0.6801 GB, free: 36 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004565/1.212, allocations: 4.924 MB / 0.6849 GB, free: 11.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002308/1.215, allocations: 1.425 MB / 0.6863 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005493/1.22, allocations: 1.835 MB / 0.6881 GB, free: 8.176 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/1.22, allocations: 301.1 kB / 0.6884 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007174/1.228, allocations: 3.926 MB / 0.6922 GB, free: 3.945 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01115/1.239, allocations: 9.169 MB / 0.7012 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01874/1.258, allocations: 14.16 MB / 0.715 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001872/1.258, allocations: 55.94 kB / 0.715 GB, free: 7.398 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03789/1.296, allocations: 16.43 MB / 0.7311 GB, free: 6.922 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002327/1.296, allocations: 84 kB / 0.7312 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003072/1.296, allocations: 180 kB / 0.7313 GB, free: 6.664 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01328/1.31, allocations: 4.029 MB / 0.7353 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007422/1.317, allocations: 2.062 MB / 0.7373 GB, free: 0.5586 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2618/1.579, allocations: 23.52 MB / 0.7603 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007286/1.586, allocations: 0.5035 MB / 0.7607 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001547/1.588, allocations: 0.5345 MB / 0.7613 GB, free: 169.1 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.006353/1.594, allocations: 3.126 MB / 0.7643 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00155/1.596, allocations: 0.6014 MB / 0.7649 GB, free: 167.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01976/1.615, allocations: 9.829 MB / 0.7745 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.328e-05/1.616, allocations: 44.88 kB / 0.7745 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.472e-05/1.616, allocations: 16 kB / 0.7746 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.672e-05/1.616, allocations: 15.52 kB / 0.7746 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03919/1.655, allocations: 19.42 MB / 0.7935 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.892e-05/1.655, allocations: 0 / 0.7935 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002823/1.658, allocations: 0.5305 MB / 0.7941 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01086/1.669, allocations: 3.621 MB / 0.7976 GB, free: 141.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007536/1.67, allocations: 64.86 kB / 0.7977 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02676/1.696, allocations: 21.37 MB / 0.8185 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/1.696, allocations: 7.875 kB / 0.8185 GB, free: 119.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02522/1.722, allocations: 14.53 MB / 0.8327 GB, free: 105.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00233/1.724, allocations: 0.6155 MB / 0.8333 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002173/1.726, allocations: 56 kB / 0.8334 GB, free: 104.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003748/1.73, allocations: 207.1 kB / 0.8336 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001005/1.731, allocations: 230 kB / 0.8338 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004889/1.731, allocations: 91.98 kB / 0.8339 GB, free: 104 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006073/1.738, allocations: 3.799 MB / 0.8376 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.21e-07/1.738, allocations: 0 / 0.8376 GB, free: 100.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008504/1.746, allocations: 1.819 MB / 0.8394 GB, free: 98.43 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.0243/1.77, allocations: 15.28 MB / 0.8543 GB, free: 83.11 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01397/1.784, allocations: 10.02 MB / 0.8641 GB, free: 73.12 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/1.784, allocations: 4.812 kB / 0.8641 GB, free: 73.12 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00568/1.79, allocations: 3.96 MB / 0.868 GB, free: 69.13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006562/1.797, allocations: 0.8076 MB / 0.8687 GB, free: 68.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3633/2.16, allocations: 83.51 MB / 0.9503 GB, free: 188.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004817/2.165, allocations: 4.86 MB / 0.9551 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005761/2.171, allocations: 2.79 MB / 0.9578 GB, free: 187.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004487/2.175, allocations: 3.247 MB / 0.9609 GB, free: 184.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.332e-06/2.175, allocations: 0 / 0.9609 GB, free: 184.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1731/2.348, allocations: 133.4 MB / 1.091 GB, free: 55.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 47.56/49.91, allocations: 11.19 kB / 1.091 GB, free: 55.7 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/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