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.00103/0.00103, allocations: 99.42 kB / 16.94 MB, free: 6.445 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.0009002/0.0009003, allocations: 183.7 kB / 17.83 MB, free: 6.012 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.451/1.451, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004468/0.0004469, allocations: 16 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09525/0.0957, allocations: 47.57 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.2616/0.3573, allocations: 62.65 MB / 391.1 MB, free: 8.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04112/0.3985, allocations: 14.66 MB / 405.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01928/0.4178, allocations: 319.1 kB / 406 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01205/0.4299, allocations: 3.089 MB / 409.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03322/0.4631, allocations: 8.938 MB / 418.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005763/0.4689, allocations: 1.263 MB / 419.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0448/0.5137, allocations: 28.12 MB / 447.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00976/0.5235, allocations: 6.341 MB / 453.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004111/0.5277, allocations: 1.869 MB / 455.7 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004533/0.5322, allocations: 2.656 MB / 458.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001353/0.5336, allocations: 248 kB / 458.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003306/0.537, allocations: 1.163 MB / 459.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003521/0.5405, allocations: 2.774 MB / 462.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002269/0.5428, allocations: 1.322 MB / 463.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.5536, allocations: 8.88 MB / 472.7 MB, free: 5.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.5537, allocations: 7.938 kB / 472.7 MB, free: 5.012 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5537, allocations: 0 / 472.7 MB, free: 5.012 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004044/0.5541, allocations: 0 / 472.7 MB, free: 5.012 MB / 366.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.02048/0.5746, allocations: 7.376 MB / 480.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.5746, allocations: 15.97 kB / 480.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003544/0.5782, allocations: 1.087 MB / 481.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1635/0.7417, allocations: 15.11 MB / 496.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.7573, allocations: 6.183 MB / 0.4907 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004204/0.7578, allocations: 373.5 kB / 0.4911 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002895/0.7607, allocations: 0.5074 MB / 0.4915 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0337/0.7944, allocations: 16.34 MB / 0.5075 GB, free: 4.754 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002608/0.7947, allocations: 79.3 kB / 0.5076 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009108/0.7956, allocations: 239.8 kB / 0.5078 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00455/0.8002, allocations: 2.923 MB / 0.5107 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0286/0.8288, allocations: 13.7 MB / 0.524 GB, free: 3.781 MB / 430.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.2632/1.092, allocations: 64.5 MB / 0.587 GB, free: 118.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0203/1.112, allocations: 7.878 MB / 0.5947 GB, free: 116.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0279/1.14, allocations: 18.93 MB / 0.6132 GB, free: 103.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/1.14, allocations: 67.31 kB / 0.6133 GB, free: 103.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=287): time 5.19e-06/1.14, allocations: 0 / 0.6133 GB, free: 103.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=370): time 0.1563/1.297, allocations: 51.85 MB / 0.6639 GB, free: 52.35 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/1.297, allocations: 273.8 kB / 0.6642 GB, free: 52.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00741/1.304, allocations: 6.574 MB / 0.6706 GB, free: 45.45 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007316/1.305, allocations: 81.7 kB / 0.6707 GB, free: 45.36 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002297/1.307, allocations: 4.758 MB / 0.6753 GB, free: 40.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001517/1.309, allocations: 1.354 MB / 0.6766 GB, free: 39.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004044/1.309, allocations: 184.7 kB / 0.6768 GB, free: 39.08 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003122/1.31, allocations: 0.7024 MB / 0.6775 GB, free: 38.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004388/1.314, allocations: 3.883 MB / 0.6813 GB, free: 34.48 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005905/1.32, allocations: 9.091 MB / 0.6902 GB, free: 22.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006098/1.326, allocations: 5.748 MB / 0.6958 GB, free: 17.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.396e-05/1.326, allocations: 56 kB / 0.6958 GB, free: 16.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03042/1.357, allocations: 16.34 MB / 0.7118 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.179e-05/1.357, allocations: 84 kB / 0.7119 GB, free: 0.5234 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001352/1.357, allocations: 180 kB / 0.7121 GB, free: 356 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1961/1.553, allocations: 4.104 MB / 0.7161 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007833/1.561, allocations: 2.06 MB / 0.7181 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03063/1.592, allocations: 22.74 MB / 0.7403 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007108/1.599, allocations: 0.5064 MB / 0.7408 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.6, allocations: 0.5315 MB / 0.7413 GB, free: 136.8 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.004597/1.605, allocations: 3.117 MB / 0.7443 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009949/1.606, allocations: 0.5794 MB / 0.7449 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01802/1.624, allocations: 9.846 MB / 0.7545 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-05/1.624, allocations: 40 kB / 0.7546 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-05/1.624, allocations: 16 kB / 0.7546 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.916e-05/1.624, allocations: 15.94 kB / 0.7546 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03319/1.657, allocations: 19.63 MB / 0.7738 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.592e-05/1.657, allocations: 0 / 0.7738 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002689/1.66, allocations: 0.5401 MB / 0.7743 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01118/1.671, allocations: 3.661 MB / 0.7779 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006173/1.672, allocations: 64.84 kB / 0.7779 GB, free: 104.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02377/1.695, allocations: 20.67 MB / 0.7981 GB, free: 83.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/1.695, allocations: 0 / 0.7981 GB, free: 83.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02181/1.717, allocations: 14.59 MB / 0.8124 GB, free: 69.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002867/1.72, allocations: 1.162 MB / 0.8135 GB, free: 68.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000986/1.721, allocations: 63.94 kB / 0.8135 GB, free: 68.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002756/1.724, allocations: 208.2 kB / 0.8137 GB, free: 67.83 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006009/1.725, allocations: 225.9 kB / 0.814 GB, free: 67.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002415/1.725, allocations: 97.08 kB / 0.8141 GB, free: 67.51 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00525/1.73, allocations: 4.186 MB / 0.8181 GB, free: 63.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.1e-07/1.73, allocations: 0 / 0.8181 GB, free: 63.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007609/1.738, allocations: 1.88 MB / 0.82 GB, free: 61.46 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.02213/1.76, allocations: 15.5 MB / 0.8351 GB, free: 45.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01295/1.773, allocations: 9.942 MB / 0.8448 GB, free: 36.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/1.773, allocations: 0 / 0.8448 GB, free: 36.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004773/1.778, allocations: 3.923 MB / 0.8487 GB, free: 32.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/1.781, allocations: 0.7341 MB / 0.8494 GB, free: 31.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2886/2.07, allocations: 193.2 MB / 1.038 GB, free: 6.777 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004685/2.075, allocations: 5.019 MB / 1.043 GB, free: 3.348 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006994/2.082, allocations: 2.815 MB / 1.046 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1679/2.249, allocations: 3.267 MB / 1.049 GB, free: 152.4 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/2.25, allocations: 0 / 1.049 GB, free: 152.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1773/2.427, allocations: 143.7 MB / 1.189 GB, free: 33.98 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/2.427, allocations: 236.3 kB / 1.189 GB, free: 33.73 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.044/8.471, allocations: 0 / 1.189 GB, free: 33.73 MB / 462.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