Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_4_0_0_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.001019/0.00102, allocations: 90.48 kB / 16.31 MB, free: 6.461 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.001171/0.001171, allocations: 180.7 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002811, allocations: 8 kB / 300.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1342, allocations: 50.42 MB / 351.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.3298/0.4641, allocations: 66.38 MB / 417.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0375/0.5016, allocations: 14 MB / 431.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01609/0.5177, allocations: 323.2 kB / 432 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0119/0.5297, allocations: 3.417 MB / 435.4 MB, free: 352 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02755/0.5573, allocations: 10.2 MB / 445.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005628/0.5629, allocations: 1.279 MB / 446.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.107/0.6699, allocations: 64.5 MB / 0.4994 GB, free: 4.246 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009728/0.6797, allocations: 6.383 MB / 0.5057 GB, free: 13.8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005078/0.6848, allocations: 2.25 MB / 0.5079 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006265/0.6911, allocations: 3.673 MB / 0.5115 GB, free: 7.863 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001535/0.6927, allocations: 248 kB / 0.5117 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003474/0.6962, allocations: 1.209 MB / 0.5129 GB, free: 6.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004008/0.7002, allocations: 2.973 MB / 0.5158 GB, free: 3.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002882/0.7031, allocations: 1.31 MB / 0.5171 GB, free: 2.109 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01077/0.7139, allocations: 8.853 MB / 0.5257 GB, free: 9.234 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.288e-05/0.714, allocations: 7.984 kB / 0.5257 GB, free: 9.227 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.714, allocations: 0 / 0.5257 GB, free: 9.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004665/0.7144, allocations: 0 / 0.5257 GB, free: 9.227 MB / 446.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.0203/0.7348, allocations: 7.15 MB / 0.5327 GB, free: 1.992 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.7348, allocations: 8.031 kB / 0.5327 GB, free: 1.984 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003777/0.7386, allocations: 1.091 MB / 0.5338 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4196/1.158, allocations: 13.23 MB / 0.5467 GB, free: 88.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01255/1.171, allocations: 6.38 MB / 0.5529 GB, free: 87.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002945/1.171, allocations: 367.1 kB / 0.5533 GB, free: 87.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001732/1.173, allocations: 0.5164 MB / 0.5538 GB, free: 87.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0275/1.2, allocations: 16.12 MB / 0.5695 GB, free: 78.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002723/1.201, allocations: 74.19 kB / 0.5696 GB, free: 78.85 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/1.202, allocations: 241 kB / 0.5698 GB, free: 78.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003811/1.206, allocations: 2.923 MB / 0.5727 GB, free: 76.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02505/1.231, allocations: 13.44 MB / 0.5858 GB, free: 66.9 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.06635/1.297, allocations: 64.14 MB / 0.6484 GB, free: 8.875 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01911/1.316, allocations: 7.846 MB / 0.6561 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005691/1.322, allocations: 4.134 MB / 0.6601 GB, free: 12.74 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02861/1.351, allocations: 18.69 MB / 0.6784 GB, free: 9.602 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.842e-05/1.351, allocations: 69.41 kB / 0.6785 GB, free: 9.527 MB / 478.1 MB Notification: Performance of pre-optimization done (n=287): time 5.651e-06/1.351, allocations: 0 / 0.6785 GB, free: 9.527 MB / 478.1 MB Notification: Performance of matching and sorting (n=370): time 0.4039/1.755, allocations: 51.34 MB / 0.7286 GB, free: 202.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/1.755, allocations: 273.4 kB / 0.7289 GB, free: 202.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0111/1.766, allocations: 6.044 MB / 0.7348 GB, free: 200.1 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008448/1.767, allocations: 80.47 kB / 0.7348 GB, free: 200.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0032/1.77, allocations: 4.752 MB / 0.7395 GB, free: 196.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002117/1.772, allocations: 1.356 MB / 0.7408 GB, free: 195.4 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000732/1.773, allocations: 188.3 kB / 0.741 GB, free: 195.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0004461/1.773, allocations: 0.6985 MB / 0.7417 GB, free: 194.8 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005784/1.779, allocations: 3.887 MB / 0.7455 GB, free: 193.5 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008595/1.788, allocations: 9.129 MB / 0.7544 GB, free: 185.2 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008904/1.797, allocations: 5.749 MB / 0.76 GB, free: 183 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000248/1.797, allocations: 49.72 kB / 0.76 GB, free: 183 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03278/1.83, allocations: 16.34 MB / 0.776 GB, free: 171.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/1.83, allocations: 84 kB / 0.7761 GB, free: 171.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002362/1.83, allocations: 184 kB / 0.7762 GB, free: 171.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01134/1.842, allocations: 4.107 MB / 0.7803 GB, free: 167 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00644/1.848, allocations: 2.063 MB / 0.7823 GB, free: 164.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02783/1.876, allocations: 21.96 MB / 0.8037 GB, free: 142.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007488/1.884, allocations: 0.4916 MB / 0.8042 GB, free: 142.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.885, allocations: 0.5358 MB / 0.8047 GB, free: 141.7 MB / 0.4981 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 (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.005919/1.891, allocations: 3.112 MB / 0.8078 GB, free: 138.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/1.893, allocations: 0.5824 MB / 0.8083 GB, free: 138 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01927/1.912, allocations: 9.842 MB / 0.8179 GB, free: 128.1 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.053e-05/1.912, allocations: 36 kB / 0.818 GB, free: 128.1 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.14e-05/1.912, allocations: 20 kB / 0.818 GB, free: 128 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001079/1.912, allocations: 19.92 kB / 0.818 GB, free: 128 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03902/1.951, allocations: 19.57 MB / 0.8371 GB, free: 108.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.845e-05/1.951, allocations: 4 kB / 0.8371 GB, free: 108.4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002611/1.954, allocations: 0.5266 MB / 0.8376 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01092/1.965, allocations: 3.659 MB / 0.8412 GB, free: 104.2 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007263/1.966, allocations: 69.33 kB / 0.8413 GB, free: 104.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02642/1.992, allocations: 19.88 MB / 0.8607 GB, free: 83.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.992, allocations: 1.75 kB / 0.8607 GB, free: 83.96 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02558/2.018, allocations: 14.47 MB / 0.8748 GB, free: 69.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001965/2.02, allocations: 0.5835 MB / 0.8754 GB, free: 68.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002095/2.022, allocations: 64.95 kB / 0.8755 GB, free: 68.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003782/2.026, allocations: 203.7 kB / 0.8757 GB, free: 68.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.027, allocations: 230.1 kB / 0.8759 GB, free: 68.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005442/2.027, allocations: 101.6 kB / 0.876 GB, free: 68.22 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.008313/2.036, allocations: 3.764 MB / 0.8797 GB, free: 64.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.61e-07/2.036, allocations: 0 / 0.8797 GB, free: 64.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01308/2.049, allocations: 1.849 MB / 0.8815 GB, free: 62.62 MB / 0.4981 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 (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.02952/2.078, allocations: 15.25 MB / 0.8963 GB, free: 47.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01589/2.094, allocations: 9.934 MB / 0.906 GB, free: 37.34 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.939e-06/2.094, allocations: 0 / 0.906 GB, free: 37.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.006304/2.101, allocations: 3.941 MB / 0.9099 GB, free: 33.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007069/2.108, allocations: 0.7717 MB / 0.9106 GB, free: 32.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3409/2.449, allocations: 66.8 MB / 0.9759 GB, free: 157.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01077/2.459, allocations: 4.86 MB / 0.9806 GB, free: 153.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.007586/2.467, allocations: 2.801 MB / 0.9834 GB, free: 151.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005418/2.473, allocations: 3.249 MB / 0.9865 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of SimCode: time 2.475e-06/2.473, allocations: 0 / 0.9865 GB, free: 148.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4325/2.905, allocations: 141.9 MB / 1.125 GB, free: 146.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/2.905, allocations: 234 kB / 1.125 GB, free: 145.9 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.5/9.406, allocations: 2.969 kB / 1.125 GB, free: 145.9 MB / 0.4981 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat