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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009252/0.0009252, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008356/0.0008355, allocations: 90.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.281e-05/2.294e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07552/0.07556, allocations: 47.58 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3013/0.3769, allocations: 103.1 MB / 473.2 MB, free: 6.508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.3772, allocations: 90 kB / 473.3 MB, free: 6.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5285/0.9058, allocations: 136.4 MB / 0.5955 GB, free: 86.61 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.9058, allocations: 3.688 kB / 0.5955 GB, free: 86.61 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002835/0.9061, allocations: 132.3 kB / 0.5956 GB, free: 86.61 MB / 410.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.0173/0.9234, allocations: 7.062 MB / 0.6025 GB, free: 81.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.9235, allocations: 12.03 kB / 0.6025 GB, free: 81.22 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003108/0.9266, allocations: 1.147 MB / 0.6036 GB, free: 80.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02877/0.9554, allocations: 7.568 MB / 0.611 GB, free: 72.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/0.9787, allocations: 9.697 MB / 0.6205 GB, free: 62.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004978/0.9793, allocations: 488.9 kB / 0.6209 GB, free: 62.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003765/0.983, allocations: 0.6534 MB / 0.6216 GB, free: 61.82 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03566/1.019, allocations: 16.58 MB / 0.6378 GB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004533/1.019, allocations: 107 kB / 0.6379 GB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002752/1.022, allocations: 313.5 kB / 0.6382 GB, free: 43.51 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002233/1.024, allocations: 1.584 MB / 0.6397 GB, free: 41.92 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0263/1.051, allocations: 13.51 MB / 0.6529 GB, free: 28.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3049/1.355, allocations: 74.4 MB / 0.7256 GB, free: 45.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02333/1.379, allocations: 7.691 MB / 0.7331 GB, free: 44.42 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005637/1.385, allocations: 3.981 MB / 0.737 GB, free: 44.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03377/1.418, allocations: 18.71 MB / 0.7552 GB, free: 38.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.655e-05/1.419, allocations: 61.44 kB / 0.7553 GB, free: 38.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=287): time 7.334e-06/1.419, allocations: 2.344 kB / 0.7553 GB, free: 38.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=370): time 0.1294/1.548, allocations: 38.95 MB / 0.7933 GB, free: 26.97 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/1.548, allocations: 273.7 kB / 0.7936 GB, free: 26.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/1.561, allocations: 5.312 MB / 0.7988 GB, free: 21.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00108/1.562, allocations: 83.03 kB / 0.7989 GB, free: 21.85 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00358/1.565, allocations: 4.775 MB / 0.8035 GB, free: 17.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002237/1.568, allocations: 1.361 MB / 0.8049 GB, free: 16.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/1.569, allocations: 184 kB / 0.805 GB, free: 16.18 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009129/1.57, allocations: 0.7016 MB / 0.8057 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006103/1.576, allocations: 3.667 MB / 0.8093 GB, free: 12.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008236/1.584, allocations: 8.868 MB / 0.818 GB, free: 1.578 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01194/1.596, allocations: 5.868 MB / 0.8237 GB, free: 13.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002027/1.597, allocations: 52 kB / 0.8237 GB, free: 13.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03837/1.635, allocations: 15.86 MB / 0.8392 GB, free: 140 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002471/1.635, allocations: 84.22 kB / 0.8393 GB, free: 56 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003866/1.636, allocations: 187.3 kB / 0.8395 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01346/1.649, allocations: 4.027 MB / 0.8434 GB, free: 11.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008142/1.657, allocations: 2.047 MB / 0.8454 GB, free: 9.789 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03552/1.693, allocations: 20.78 MB / 0.8657 GB, free: 4.758 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009382/1.702, allocations: 0.5461 MB / 0.8662 GB, free: 4.211 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002636/1.705, allocations: 0.5273 MB / 0.8668 GB, free: 3.684 MB / 474.7 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 () * 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.003554/1.709, allocations: 0.806 MB / 0.8675 GB, free: 2.875 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001984/1.711, allocations: 0.5746 MB / 0.8681 GB, free: 2.293 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2696/1.98, allocations: 9.454 MB / 0.8773 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-05/1.98, allocations: 42.47 kB / 0.8774 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.191e-05/1.981, allocations: 17.78 kB / 0.8774 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.161e-05/1.981, allocations: 18.23 kB / 0.8774 GB, free: 129.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04167/2.022, allocations: 18.95 MB / 0.8959 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.632e-05/2.022, allocations: 0 / 0.8959 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002897/2.025, allocations: 0.5035 MB / 0.8964 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01171/2.037, allocations: 3.571 MB / 0.8999 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/2.038, allocations: 65.39 kB / 0.8999 GB, free: 128.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02736/2.066, allocations: 18.71 MB / 0.9182 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/2.066, allocations: 4.672 kB / 0.9182 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02788/2.094, allocations: 13.97 MB / 0.9319 GB, free: 116.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004392/2.098, allocations: 1.123 MB / 0.933 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002981/2.101, allocations: 58.52 kB / 0.933 GB, free: 116.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004747/2.106, allocations: 221 kB / 0.9332 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001204/2.107, allocations: 232.1 kB / 0.9335 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005791/2.108, allocations: 90.91 kB / 0.9335 GB, free: 116 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008127/2.116, allocations: 3.719 MB / 0.9372 GB, free: 114.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.116, allocations: 0 / 0.9372 GB, free: 114.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01079/2.127, allocations: 1.847 MB / 0.939 GB, free: 114.5 MB / 474.7 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 () * 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.02612/2.153, allocations: 14.8 MB / 0.9534 GB, free: 102.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0153/2.168, allocations: 9.497 MB / 0.9627 GB, free: 94.55 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/2.168, allocations: 0 / 0.9627 GB, free: 94.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006745/2.175, allocations: 3.729 MB / 0.9663 GB, free: 91.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005725/2.181, allocations: 0.7198 MB / 0.9671 GB, free: 90.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04288/2.224, allocations: 15.38 MB / 0.9821 GB, free: 77.41 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01014/2.234, allocations: 5.026 MB / 0.987 GB, free: 73.02 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008902/2.243, allocations: 2.809 MB / 0.9897 GB, free: 70.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007044/2.25, allocations: 3.276 MB / 0.9929 GB, free: 67.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.834e-06/2.25, allocations: 0 / 0.9929 GB, free: 67.03 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4368/2.687, allocations: 141.4 MB / 1.131 GB, free: 76.43 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001463/2.687, allocations: 194.9 kB / 1.131 GB, free: 76.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.825/8.512, allocations: 0 / 1.131 GB, free: 76.2 MB / 474.7 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) 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