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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001672/0.001672, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 221.5 MB / 230.3 MB, free: 7.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009967/0.0009968, allocations: 90.03 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.021e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.42 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3744/0.4798, allocations: 104.2 MB / 491.8 MB, free: 6.438 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.4802, allocations: 87.95 kB / 491.8 MB, free: 6.352 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.61/1.09, allocations: 135.2 MB / 0.6124 GB, free: 78.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.174e-06/1.09, allocations: 0 / 0.6124 GB, free: 78.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003951/1.091, allocations: 138.6 kB / 0.6125 GB, free: 78.63 MB / 426.7 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.02288/1.114, allocations: 7.035 MB / 0.6194 GB, free: 72.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/1.114, allocations: 8.031 kB / 0.6194 GB, free: 72.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03147/1.145, allocations: 7.563 MB / 0.6268 GB, free: 65.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02168/1.167, allocations: 9.079 MB / 0.6356 GB, free: 58.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003373/1.167, allocations: 219.5 kB / 0.6359 GB, free: 58.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003538/1.171, allocations: 395.8 kB / 0.6362 GB, free: 57.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01625/1.187, allocations: 9.69 MB / 0.6457 GB, free: 47.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02831/1.215, allocations: 14.25 MB / 0.6596 GB, free: 32.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004854/1.216, allocations: 103.1 kB / 0.6597 GB, free: 32.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003018/1.219, allocations: 44 kB / 0.6597 GB, free: 32.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002188/1.221, allocations: 1.59 MB / 0.6613 GB, free: 30.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3385/1.56, allocations: 73.67 MB / 0.7332 GB, free: 64.88 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008139/1.568, allocations: 5.231 MB / 0.7383 GB, free: 64.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005511/1.573, allocations: 3.765 MB / 0.742 GB, free: 64.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002384/1.576, allocations: 2.268 MB / 0.7442 GB, free: 62.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/1.576, allocations: 62.56 kB / 0.7443 GB, free: 62.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=302): time 6.702e-06/1.576, allocations: 2.906 kB / 0.7443 GB, free: 62.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=385): time 0.08937/1.665, allocations: 40.68 MB / 0.784 GB, free: 56.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/1.665, allocations: 273.3 kB / 0.7843 GB, free: 55.85 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007207/1.673, allocations: 4.607 MB / 0.7888 GB, free: 54.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008955/1.674, allocations: 32.3 kB / 0.7888 GB, free: 54.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002404/1.676, allocations: 4.772 MB / 0.7935 GB, free: 50.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.678, allocations: 1.368 MB / 0.7948 GB, free: 49.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005297/1.678, allocations: 3.125 kB / 0.7948 GB, free: 49.52 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003862/1.679, allocations: 0.7097 MB / 0.7955 GB, free: 49.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004516/1.683, allocations: 3.634 MB / 0.7991 GB, free: 47.71 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007146/1.69, allocations: 8.933 MB / 0.8078 GB, free: 39.27 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007126/1.697, allocations: 5.573 MB / 0.8132 GB, free: 35.94 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000115/1.698, allocations: 56 kB / 0.8133 GB, free: 35.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.03083/1.728, allocations: 15.01 MB / 0.8279 GB, free: 23.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001583/1.729, allocations: 84 kB / 0.828 GB, free: 23.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003149/1.729, allocations: 188 kB / 0.8282 GB, free: 23.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01156/1.74, allocations: 4.006 MB / 0.8321 GB, free: 20.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007554/1.748, allocations: 2.111 MB / 0.8342 GB, free: 19.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02523/1.773, allocations: 20.13 MB / 0.8538 GB, free: 1.789 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00743/1.781, allocations: 384.5 kB / 0.8542 GB, free: 1.492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001491/1.782, allocations: 0.5409 MB / 0.8547 GB, free: 0.9609 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 855 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1127): * Single equations (assignments): 1122 * 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 {(1,100.0%) 45,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001409/1.784, allocations: 0.584 MB / 0.8553 GB, free: 384 kB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03025/1.814, allocations: 9.993 MB / 0.865 GB, free: 10.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/1.816, allocations: 0.5438 MB / 0.8656 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02067/1.836, allocations: 9.366 MB / 0.8747 GB, free: 1.305 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.413e-05/1.837, allocations: 43.94 kB / 0.8748 GB, free: 1.262 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-05/1.837, allocations: 18.88 kB / 0.8748 GB, free: 1.246 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.891e-05/1.837, allocations: 23.92 kB / 0.8748 GB, free: 1.223 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04011/1.877, allocations: 18.01 MB / 0.8924 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.619e-05/1.877, allocations: 288 / 0.8924 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002759/1.88, allocations: 0.5382 MB / 0.8929 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0114/1.891, allocations: 3.528 MB / 0.8964 GB, free: 11.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007108/1.892, allocations: 8 kB / 0.8964 GB, free: 11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3014/2.193, allocations: 17.67 MB / 0.9136 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/2.193, allocations: 5.344 kB / 0.9136 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02922/2.222, allocations: 14.15 MB / 0.9275 GB, free: 137.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002461/2.225, allocations: 0.5414 MB / 0.928 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002366/2.227, allocations: 7.812 kB / 0.928 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004871/2.232, allocations: 170.4 kB / 0.9282 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.234, allocations: 236.1 kB / 0.9284 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003399/2.234, allocations: 98.06 kB / 0.9285 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005124/2.239, allocations: 3.095 MB / 0.9315 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.41e-07/2.239, allocations: 1.219 kB / 0.9315 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008033/2.247, allocations: 1.612 MB / 0.9331 GB, free: 137.5 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 280 * 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.0228/2.27, allocations: 15.39 MB / 0.9481 GB, free: 135.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01358/2.284, allocations: 9.216 MB / 0.9571 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/2.284, allocations: 0 / 0.9571 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005483/2.289, allocations: 3.686 MB / 0.9607 GB, free: 131.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005674/2.295, allocations: 0.5804 MB / 0.9613 GB, free: 131.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0495/2.344, allocations: 15 MB / 0.9759 GB, free: 126.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01086/2.355, allocations: 5.003 MB / 0.9808 GB, free: 124.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009932/2.365, allocations: 2.893 MB / 0.9836 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006339/2.372, allocations: 3.25 MB / 0.9868 GB, free: 121.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/2.372, allocations: 0 / 0.9868 GB, free: 121.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5062/2.878, allocations: 133.1 MB / 1.117 GB, free: 133.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000218/2.878, allocations: 167.1 kB / 1.117 GB, free: 133 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.734/9.612, allocations: 0.7812 kB / 1.117 GB, free: 133 MB / 0.4948 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