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.0009918/0.0009919, allocations: 180 kB / 17.01 MB, free: 5.121 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.338/1.338, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008117/0.0008117, allocations: 104 kB / 271.5 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002412, allocations: 4 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2164, allocations: 47.56 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1105/0.3269, allocations: 103.2 MB / 479.1 MB, free: 9.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.3272, allocations: 95.95 kB / 479.2 MB, free: 9.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4985/0.8258, allocations: 136.3 MB / 0.6011 GB, free: 14.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.8258, allocations: 3.984 kB / 0.6011 GB, free: 14.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004604/0.8263, allocations: 132 kB / 0.6012 GB, free: 14.61 MB / 378.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.02097/0.8473, allocations: 7.667 MB / 0.6087 GB, free: 6.859 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.8474, allocations: 12.03 kB / 0.6087 GB, free: 6.848 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004611/0.852, allocations: 1.142 MB / 0.6099 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02891/0.8809, allocations: 7.557 MB / 0.6172 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02388/0.9048, allocations: 9.748 MB / 0.6268 GB, free: 4.285 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005375/0.9054, allocations: 492.9 kB / 0.6272 GB, free: 3.801 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002891/0.9083, allocations: 0.6558 MB / 0.6279 GB, free: 3.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03591/0.9442, allocations: 16.72 MB / 0.6442 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004484/0.9447, allocations: 99.11 kB / 0.6443 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002352/0.9471, allocations: 323.7 kB / 0.6446 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1833/1.13, allocations: 1.586 MB / 0.6461 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/1.155, allocations: 13.77 MB / 0.6596 GB, free: 62.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0708/1.226, allocations: 74.42 MB / 0.7323 GB, free: 16.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01984/1.246, allocations: 7.741 MB / 0.7398 GB, free: 13.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02676/1.273, allocations: 18.71 MB / 0.7581 GB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/1.273, allocations: 63.31 kB / 0.7582 GB, free: 4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=287): time 4.899e-06/1.273, allocations: 0 / 0.7582 GB, free: 4 MB / 410.7 MB Notification: Performance of matching and sorting (n=370): time 0.1772/1.45, allocations: 50.29 MB / 0.8073 GB, free: 12.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/1.45, allocations: 273.8 kB / 0.8075 GB, free: 12.62 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0104/1.461, allocations: 5.404 MB / 0.8128 GB, free: 7.223 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000772/1.461, allocations: 81.7 kB / 0.8129 GB, free: 7.137 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003961/1.465, allocations: 4.771 MB / 0.8175 GB, free: 2.363 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001953/1.467, allocations: 1.366 MB / 0.8189 GB, free: 1.008 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001275/1.469, allocations: 187 kB / 0.8191 GB, free: 0.8281 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0011/1.47, allocations: 0.6908 MB / 0.8197 GB, free: 132 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2136/1.683, allocations: 3.773 MB / 0.8234 GB, free: 108.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008762/1.692, allocations: 8.983 MB / 0.8322 GB, free: 101.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007914/1.7, allocations: 5.653 MB / 0.8377 GB, free: 101.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/1.7, allocations: 52.34 kB / 0.8378 GB, free: 101.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03162/1.732, allocations: 16.12 MB / 0.8535 GB, free: 100.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002293/1.732, allocations: 81.06 kB / 0.8536 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002962/1.732, allocations: 184.1 kB / 0.8538 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01257/1.745, allocations: 4.063 MB / 0.8577 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006627/1.752, allocations: 2.044 MB / 0.8597 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03069/1.782, allocations: 21.72 MB / 0.8809 GB, free: 92.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008199/1.791, allocations: 0.5482 MB / 0.8815 GB, free: 92.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002054/1.793, allocations: 0.5269 MB / 0.882 GB, free: 92.36 MB / 458.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 () * 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.008072/1.801, allocations: 3.124 MB / 0.885 GB, free: 91.05 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001772/1.803, allocations: 0.5752 MB / 0.8856 GB, free: 91.05 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02346/1.826, allocations: 9.565 MB / 0.8949 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.426e-05/1.826, allocations: 36.47 kB / 0.895 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-05/1.826, allocations: 21.62 kB / 0.895 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-05/1.826, allocations: 17.72 kB / 0.895 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03823/1.865, allocations: 19.07 MB / 0.9136 GB, free: 74.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.708e-05/1.865, allocations: 0 / 0.9136 GB, free: 74.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00236/1.867, allocations: 0.5103 MB / 0.9141 GB, free: 74.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01132/1.878, allocations: 3.614 MB / 0.9177 GB, free: 71.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007139/1.879, allocations: 70.92 kB / 0.9177 GB, free: 71.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02443/1.904, allocations: 19.64 MB / 0.9369 GB, free: 55.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/1.904, allocations: 4 kB / 0.9369 GB, free: 55.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02333/1.927, allocations: 14.12 MB / 0.9507 GB, free: 43.15 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003234/1.93, allocations: 1.124 MB / 0.9518 GB, free: 42.01 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001312/1.932, allocations: 60 kB / 0.9518 GB, free: 41.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003251/1.935, allocations: 222.7 kB / 0.9521 GB, free: 41.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006874/1.936, allocations: 231 kB / 0.9523 GB, free: 41.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003159/1.936, allocations: 91.98 kB / 0.9524 GB, free: 41.42 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006577/1.942, allocations: 3.8 MB / 0.9561 GB, free: 37.62 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.942, allocations: 0 / 0.9561 GB, free: 37.62 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008749/1.951, allocations: 1.853 MB / 0.9579 GB, free: 35.78 MB / 458.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 () * 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.02482/1.976, allocations: 14.98 MB / 0.9725 GB, free: 20.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1869/2.163, allocations: 9.665 MB / 0.9819 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/2.163, allocations: 3.719 kB / 0.982 GB, free: 100.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005264/2.168, allocations: 3.789 MB / 0.9857 GB, free: 99.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003546/2.172, allocations: 0.7172 MB / 0.9864 GB, free: 99.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1433/2.315, allocations: 191.3 MB / 1.173 GB, free: 7.266 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00817/2.323, allocations: 5.017 MB / 1.178 GB, free: 5.676 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008943/2.332, allocations: 2.817 MB / 1.181 GB, free: 5.445 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006243/2.339, allocations: 3.275 MB / 1.184 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of SimCode: time 6.82e-07/2.339, allocations: 0 / 1.184 GB, free: 2.758 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3701/2.709, allocations: 141.5 MB / 1.322 GB, free: 97.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/2.709, allocations: 221.8 kB / 1.322 GB, free: 97.27 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.896/8.605, allocations: 7.938 kB / 1.322 GB, free: 97.26 MB / 0.5105 GB (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