Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_3_2_3_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_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 4.0.0+maint.om/package.mo): time 0.0008011/0.0008012, allocations: 95.45 kB / 16.95 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008797/0.0008797, allocations: 172.2 kB / 17.83 MB, free: 5.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004791, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08726/0.08775, allocations: 47.59 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2519/0.3397, allocations: 66.41 MB / 394.9 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03909/0.3789, allocations: 14 MB / 408.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01928/0.3982, allocations: 325.1 kB / 409.2 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01286/0.4111, allocations: 3.426 MB / 412.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03273/0.4439, allocations: 10.21 MB / 422.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006118/0.4501, allocations: 1.286 MB / 424.1 MB, free: 396 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0489/0.499, allocations: 37.33 MB / 461.4 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01163/0.5107, allocations: 6.395 MB / 467.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005027/0.5157, allocations: 2.25 MB / 470.1 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00597/0.5218, allocations: 3.696 MB / 473.8 MB, free: 5.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00187/0.5237, allocations: 252 kB / 474 MB, free: 4.898 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004103/0.5278, allocations: 1.19 MB / 475.2 MB, free: 3.707 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005034/0.5329, allocations: 3.004 MB / 478.2 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003356/0.5362, allocations: 1.314 MB / 479.5 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.5481, allocations: 8.892 MB / 488.4 MB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.5482, allocations: 0 / 488.4 MB, free: 6.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.5482, allocations: 0 / 488.4 MB, free: 6.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004867/0.5487, allocations: 3.938 kB / 488.4 MB, free: 6.453 MB / 382.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.0196/0.5683, allocations: 7.189 MB / 495.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001047/0.5684, allocations: 12.03 kB / 495.6 MB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003418/0.5718, allocations: 1.079 MB / 496.7 MB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1326/0.7044, allocations: 13.26 MB / 0.498 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01549/0.7199, allocations: 6.994 MB / 0.5048 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003953/0.7204, allocations: 373.5 kB / 0.5052 GB, free: 9.355 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002153/0.7225, allocations: 0.5112 MB / 0.5057 GB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03428/0.7569, allocations: 16.12 MB / 0.5214 GB, free: 7.652 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004291/0.7573, allocations: 83.2 kB / 0.5215 GB, free: 7.57 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001726/0.7591, allocations: 239.8 kB / 0.5218 GB, free: 7.336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005245/0.7644, allocations: 2.923 MB / 0.5246 GB, free: 4.402 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02991/0.7943, allocations: 13.44 MB / 0.5377 GB, free: 6.945 MB / 446.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.2744/1.069, allocations: 64.21 MB / 0.6004 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/1.088, allocations: 7.846 MB / 0.6081 GB, free: 112.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005179/1.094, allocations: 4.123 MB / 0.6121 GB, free: 108.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02761/1.121, allocations: 18.72 MB / 0.6304 GB, free: 89.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.268e-05/1.121, allocations: 66.59 kB / 0.6305 GB, free: 89.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 5.51e-06/1.121, allocations: 0 / 0.6305 GB, free: 89.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=370): time 0.1625/1.284, allocations: 51.57 MB / 0.6808 GB, free: 37.37 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/1.284, allocations: 269.8 kB / 0.6811 GB, free: 37.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01174/1.296, allocations: 6.102 MB / 0.687 GB, free: 30.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001051/1.297, allocations: 85.7 kB / 0.6871 GB, free: 30.85 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003365/1.3, allocations: 4.757 MB / 0.6918 GB, free: 26.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002186/1.302, allocations: 1.359 MB / 0.6931 GB, free: 24.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/1.304, allocations: 189.3 kB / 0.6933 GB, free: 24.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0008517/1.305, allocations: 0.6908 MB / 0.6939 GB, free: 23.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006744/1.312, allocations: 3.887 MB / 0.6977 GB, free: 19.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009706/1.321, allocations: 9.134 MB / 0.7067 GB, free: 8.266 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00911/1.33, allocations: 5.752 MB / 0.7123 GB, free: 2.496 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/1.331, allocations: 52 kB / 0.7123 GB, free: 2.445 MB / 446.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.274/1.605, allocations: 16.34 MB / 0.7283 GB, free: 146.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/1.605, allocations: 89.28 kB / 0.7284 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002718/1.605, allocations: 183.8 kB / 0.7286 GB, free: 146.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01207/1.617, allocations: 4.1 MB / 0.7326 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007194/1.624, allocations: 2.063 MB / 0.7346 GB, free: 145.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02855/1.653, allocations: 21.96 MB / 0.756 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007554/1.661, allocations: 0.5043 MB / 0.7565 GB, free: 129.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001669/1.662, allocations: 0.5286 MB / 0.757 GB, free: 128.7 MB / 446.1 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.006464/1.669, allocations: 3.123 MB / 0.7601 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001308/1.67, allocations: 0.5737 MB / 0.7606 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01838/1.689, allocations: 9.841 MB / 0.7702 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-05/1.689, allocations: 40.62 kB / 0.7703 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-05/1.689, allocations: 20 kB / 0.7703 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.805e-05/1.689, allocations: 15.94 kB / 0.7703 GB, free: 115.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0366/1.725, allocations: 19.6 MB / 0.7895 GB, free: 95.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.586e-05/1.726, allocations: 0 / 0.7895 GB, free: 95.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002792/1.728, allocations: 0.5343 MB / 0.79 GB, free: 95.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01083/1.739, allocations: 3.665 MB / 0.7936 GB, free: 91.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001035/1.74, allocations: 65.06 kB / 0.7936 GB, free: 91.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0269/1.767, allocations: 19.88 MB / 0.813 GB, free: 71.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.767, allocations: 2.422 kB / 0.813 GB, free: 71.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02831/1.796, allocations: 14.47 MB / 0.8272 GB, free: 57.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003747/1.799, allocations: 1.145 MB / 0.8283 GB, free: 55.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002177/1.802, allocations: 59.75 kB / 0.8283 GB, free: 55.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004254/1.806, allocations: 208.7 kB / 0.8285 GB, free: 55.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001588/1.808, allocations: 226.8 kB / 0.8288 GB, free: 55.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007946/1.808, allocations: 97.31 kB / 0.8289 GB, free: 55.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008331/1.817, allocations: 3.806 MB / 0.8326 GB, free: 51.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/1.817, allocations: 0 / 0.8326 GB, free: 51.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01224/1.829, allocations: 1.861 MB / 0.8344 GB, free: 49.65 MB / 446.1 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.0276/1.857, allocations: 15.24 MB / 0.8493 GB, free: 34.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01717/1.874, allocations: 9.94 MB / 0.859 GB, free: 24.37 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.874, allocations: 5.453 kB / 0.859 GB, free: 24.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005977/1.88, allocations: 3.929 MB / 0.8628 GB, free: 20.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006184/1.886, allocations: 0.7711 MB / 0.8636 GB, free: 19.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3552/2.241, allocations: 67.2 MB / 0.9292 GB, free: 109.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005813/2.247, allocations: 4.874 MB / 0.934 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006712/2.254, allocations: 2.803 MB / 0.9367 GB, free: 101.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003662/2.258, allocations: 3.264 MB / 0.9399 GB, free: 98.44 MB / 446.1 MB Notification: Performance of SimCode: time 1.493e-06/2.258, allocations: 0 / 0.9399 GB, free: 98.44 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4536/2.711, allocations: 142.5 MB / 1.079 GB, free: 106.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001559/2.711, allocations: 235.1 kB / 1.079 GB, free: 106.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.06/8.772, allocations: 4 kB / 1.079 GB, free: 106.3 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat