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.001018/0.001019, allocations: 92.8 kB / 16.3 MB, free: 5.996 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.000942/0.0009421, allocations: 182.5 kB / 17.2 MB, free: 5.906 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.418/1.418, allocations: 223.2 MB / 241.1 MB, free: 5.48 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000268/0.000268, allocations: 6.031 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1062, allocations: 50.43 MB / 351.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses): time 0.06275/0.169, allocations: 62.61 MB / 413.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2981/0.4672, allocations: 14.64 MB / 428.5 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01905/0.4863, allocations: 320.5 kB / 428.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01259/0.4989, allocations: 3.086 MB / 431.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03001/0.529, allocations: 8.932 MB / 440.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006173/0.5352, allocations: 1.267 MB / 442.1 MB, free: 0 / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.07353/0.6087, allocations: 49.92 MB / 492 MB, free: 7.457 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009886/0.6187, allocations: 6.35 MB / 498.4 MB, free: 2.934 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004059/0.6228, allocations: 1.85 MB / 0.4885 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004674/0.6275, allocations: 2.643 MB / 0.4911 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001366/0.6289, allocations: 248 kB / 0.4913 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003347/0.6322, allocations: 1.175 MB / 0.4924 GB, free: 14.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003337/0.6356, allocations: 2.767 MB / 0.4951 GB, free: 12.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002487/0.6381, allocations: 1.314 MB / 0.4964 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01501/0.6531, allocations: 8.846 MB / 0.5051 GB, free: 4.504 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.6532, allocations: 4 kB / 0.5051 GB, free: 4.5 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6532, allocations: 0 / 0.5051 GB, free: 4.5 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004405/0.6536, allocations: 0 / 0.5051 GB, free: 4.5 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.0245/0.6781, allocations: 7.334 MB / 0.5122 GB, free: 13.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.6782, allocations: 8.031 kB / 0.5122 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004077/0.6823, allocations: 1.082 MB / 0.5133 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1719/0.8542, allocations: 15.1 MB / 0.528 GB, free: 14.68 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0155/0.8697, allocations: 5.582 MB / 0.5335 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003605/0.8701, allocations: 367.6 kB / 0.5338 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00231/0.8725, allocations: 0.5113 MB / 0.5343 GB, free: 9.953 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03371/0.9062, allocations: 16.35 MB / 0.5503 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003248/0.9066, allocations: 76.14 kB / 0.5504 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001042/0.9076, allocations: 237.4 kB / 0.5506 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005045/0.9127, allocations: 2.927 MB / 0.5535 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03025/0.9429, allocations: 13.7 MB / 0.5668 GB, free: 14.09 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.307/1.25, allocations: 64.45 MB / 0.6298 GB, free: 136.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02184/1.272, allocations: 7.866 MB / 0.6375 GB, free: 135.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03006/1.302, allocations: 18.9 MB / 0.6559 GB, free: 126.1 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/1.302, allocations: 64.31 kB / 0.656 GB, free: 126.1 MB / 478.1 MB Notification: Performance of pre-optimization done (n=287): time 5.49e-06/1.302, allocations: 0 / 0.656 GB, free: 126.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=370): time 0.1598/1.462, allocations: 51.63 MB / 0.7064 GB, free: 77.64 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/1.462, allocations: 281.5 kB / 0.7067 GB, free: 77.31 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008551/1.471, allocations: 6.507 MB / 0.713 GB, free: 70.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001101/1.472, allocations: 84.98 kB / 0.7131 GB, free: 70.72 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003033/1.475, allocations: 4.742 MB / 0.7177 GB, free: 65.98 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001745/1.476, allocations: 1.359 MB / 0.719 GB, free: 64.63 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004764/1.477, allocations: 188 kB / 0.7192 GB, free: 64.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003692/1.477, allocations: 0.6947 MB / 0.7199 GB, free: 63.75 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005274/1.483, allocations: 3.887 MB / 0.7237 GB, free: 59.85 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009589/1.492, allocations: 9.09 MB / 0.7326 GB, free: 48.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008901/1.501, allocations: 5.758 MB / 0.7382 GB, free: 42.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001156/1.501, allocations: 52 kB / 0.7383 GB, free: 42.56 MB / 478.1 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03182/1.533, allocations: 16.34 MB / 0.7542 GB, free: 26.18 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001388/1.533, allocations: 80 kB / 0.7543 GB, free: 26.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002245/1.534, allocations: 184 kB / 0.7545 GB, free: 25.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01284/1.546, allocations: 4.111 MB / 0.7585 GB, free: 21.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006835/1.553, allocations: 2.055 MB / 0.7605 GB, free: 19.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2519/1.805, allocations: 22.72 MB / 0.7827 GB, free: 153.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00817/1.813, allocations: 0.5069 MB / 0.7832 GB, free: 153.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001957/1.815, allocations: 0.5253 MB / 0.7837 GB, free: 153.4 MB / 478.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.006774/1.822, allocations: 3.12 MB / 0.7867 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.824, allocations: 0.5752 MB / 0.7873 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02125/1.845, allocations: 9.839 MB / 0.7969 GB, free: 153.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.697e-05/1.845, allocations: 39.09 kB / 0.7969 GB, free: 153.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.255e-05/1.845, allocations: 15.72 kB / 0.7969 GB, free: 153.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.548e-05/1.845, allocations: 21.09 kB / 0.797 GB, free: 153.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03703/1.882, allocations: 19.61 MB / 0.8161 GB, free: 146.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.212e-05/1.882, allocations: 0 / 0.8161 GB, free: 146.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/1.885, allocations: 0.5339 MB / 0.8166 GB, free: 146.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01145/1.896, allocations: 3.663 MB / 0.8202 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007115/1.897, allocations: 63.7 kB / 0.8203 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02565/1.923, allocations: 20.67 MB / 0.8405 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/1.923, allocations: 3.312 kB / 0.8405 GB, free: 125.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02303/1.946, allocations: 14.58 MB / 0.8547 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001774/1.948, allocations: 0.6147 MB / 0.8553 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001413/1.949, allocations: 62.31 kB / 0.8554 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00353/1.953, allocations: 207.7 kB / 0.8556 GB, free: 110.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008881/1.954, allocations: 222.2 kB / 0.8558 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/1.954, allocations: 99.97 kB / 0.8559 GB, free: 110.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006302/1.96, allocations: 4.131 MB / 0.8599 GB, free: 106 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.51e-07/1.96, allocations: 7.344 kB / 0.8599 GB, free: 106 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0105/1.971, allocations: 1.876 MB / 0.8617 GB, free: 104.1 MB / 478.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.02408/1.995, allocations: 15.5 MB / 0.8769 GB, free: 88.57 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01359/2.009, allocations: 9.942 MB / 0.8866 GB, free: 78.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/2.009, allocations: 0 / 0.8866 GB, free: 78.66 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004777/2.013, allocations: 3.933 MB / 0.8904 GB, free: 74.71 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003839/2.017, allocations: 0.7164 MB / 0.8911 GB, free: 74.01 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3178/2.335, allocations: 192.8 MB / 1.079 GB, free: 56.05 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005185/2.34, allocations: 4.997 MB / 1.084 GB, free: 54.21 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006515/2.347, allocations: 2.822 MB / 1.087 GB, free: 51.95 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003371/2.35, allocations: 3.259 MB / 1.09 GB, free: 48.69 MB / 478.1 MB Notification: Performance of SimCode: time 2.004e-06/2.35, allocations: 0 / 1.09 GB, free: 48.69 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3731/2.723, allocations: 143.1 MB / 1.23 GB, free: 80.29 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/2.724, allocations: 224.5 kB / 1.23 GB, free: 80.05 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.221/8.944, allocations: 3.938 kB / 1.23 GB, free: 80.05 MB / 478.1 MB (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