Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001279/0.001279, allocations: 200.9 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00091/0.00091, allocations: 92.61 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.758e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1359, allocations: 51.48 MB / 395.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5481, allocations: 104.9 MB / 0.4884 GB, free: 4.578 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003141/0.5485, allocations: 89.19 kB / 0.4885 GB, free: 4.535 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6873/1.236, allocations: 140.6 MB / 0.6258 GB, free: 73.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.043e-06/1.236, allocations: 0 / 0.6258 GB, free: 73.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008972/1.237, allocations: 135 kB / 0.6259 GB, free: 73.64 MB / 442.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.02964/1.266, allocations: 7.082 MB / 0.6328 GB, free: 71.02 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/1.267, allocations: 7.375 kB / 0.6328 GB, free: 71.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03295/1.299, allocations: 7.562 MB / 0.6402 GB, free: 70.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02221/1.322, allocations: 8.194 MB / 0.6482 GB, free: 68.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004242/1.322, allocations: 210.1 kB / 0.6484 GB, free: 68.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003467/1.326, allocations: 398.4 kB / 0.6488 GB, free: 68.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01885/1.345, allocations: 9.688 MB / 0.6582 GB, free: 65.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03195/1.377, allocations: 14.25 MB / 0.6721 GB, free: 57.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003481/1.377, allocations: 101.2 kB / 0.6722 GB, free: 57.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009989/1.378, allocations: 48.56 kB / 0.6723 GB, free: 57.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00227/1.38, allocations: 1.581 MB / 0.6738 GB, free: 57.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09077/1.471, allocations: 73.68 MB / 0.7458 GB, free: 4.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3205/1.792, allocations: 5.231 MB / 0.7509 GB, free: 82.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00524/1.797, allocations: 3.773 MB / 0.7546 GB, free: 82.31 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00221/1.799, allocations: 2.255 MB / 0.7568 GB, free: 80.34 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.482e-05/1.799, allocations: 69.55 kB / 0.7569 GB, free: 80.3 MB / 458.7 MB Notification: Performance of pre-optimization done (n=302): time 5.741e-06/1.799, allocations: 3.938 kB / 0.7569 GB, free: 80.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=385): time 0.1217/1.921, allocations: 40.67 MB / 0.7966 GB, free: 74.27 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/1.921, allocations: 275 kB / 0.7968 GB, free: 73.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01356/1.935, allocations: 4.614 MB / 0.8013 GB, free: 72.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001366/1.936, allocations: 25.7 kB / 0.8014 GB, free: 72.33 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004883/1.941, allocations: 4.776 MB / 0.806 GB, free: 68.78 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002832/1.944, allocations: 1.369 MB / 0.8074 GB, free: 67.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/1.945, allocations: 0 / 0.8074 GB, free: 67.75 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008096/1.946, allocations: 0.7047 MB / 0.8081 GB, free: 67.27 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008003/1.954, allocations: 3.631 MB / 0.8116 GB, free: 65.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01172/1.966, allocations: 8.932 MB / 0.8203 GB, free: 57.51 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01169/1.977, allocations: 5.576 MB / 0.8258 GB, free: 55.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002234/1.978, allocations: 53.72 kB / 0.8258 GB, free: 55.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=1247) (initialization): time 0.04937/2.027, allocations: 15.01 MB / 0.8405 GB, free: 51.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001669/2.027, allocations: 81.56 kB / 0.8406 GB, free: 51.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000282/2.028, allocations: 188.7 kB / 0.8407 GB, free: 51.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01758/2.045, allocations: 4.008 MB / 0.8447 GB, free: 50.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00876/2.054, allocations: 2.111 MB / 0.8467 GB, free: 50.33 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02893/2.083, allocations: 20.11 MB / 0.8664 GB, free: 39.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009413/2.092, allocations: 381.3 kB / 0.8667 GB, free: 38.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00332/2.096, allocations: 0.5435 MB / 0.8673 GB, free: 38.2 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.004504/2.1, allocations: 0.5916 MB / 0.8678 GB, free: 37.61 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02051/2.121, allocations: 9.306 MB / 0.8769 GB, free: 30.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001796/2.123, allocations: 0.5399 MB / 0.8774 GB, free: 29.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01893/2.142, allocations: 9.367 MB / 0.8866 GB, free: 22.49 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.529e-05/2.142, allocations: 39.38 kB / 0.8866 GB, free: 22.46 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.151e-05/2.142, allocations: 21.69 kB / 0.8867 GB, free: 22.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.771e-05/2.142, allocations: 14.86 kB / 0.8867 GB, free: 22.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03587/2.178, allocations: 18.02 MB / 0.9043 GB, free: 8.129 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.982e-05/2.178, allocations: 4 kB / 0.9043 GB, free: 8.125 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00278/2.181, allocations: 0.5285 MB / 0.9048 GB, free: 7.688 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01102/2.192, allocations: 3.523 MB / 0.9082 GB, free: 5.359 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008177/2.192, allocations: 15.42 kB / 0.9082 GB, free: 5.348 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3668/2.559, allocations: 17.67 MB / 0.9255 GB, free: 85.46 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-05/2.559, allocations: 13.45 kB / 0.9255 GB, free: 85.46 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02771/2.587, allocations: 14.15 MB / 0.9393 GB, free: 84.32 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002189/2.589, allocations: 0.5407 MB / 0.9399 GB, free: 84.22 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002189/2.592, allocations: 6.5 kB / 0.9399 GB, free: 84.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004635/2.596, allocations: 165.9 kB / 0.94 GB, free: 84.22 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001486/2.598, allocations: 245 kB / 0.9403 GB, free: 84.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000439/2.598, allocations: 99.17 kB / 0.9403 GB, free: 84.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007999/2.606, allocations: 3.094 MB / 0.9434 GB, free: 84.04 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.81e-07/2.606, allocations: 0 / 0.9434 GB, free: 84.04 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01327/2.619, allocations: 1.619 MB / 0.945 GB, free: 84.04 MB / 474.7 MB 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.03121/2.651, allocations: 15.38 MB / 0.96 GB, free: 80.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01981/2.671, allocations: 9.216 MB / 0.969 GB, free: 77.14 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/2.671, allocations: 3.734 kB / 0.969 GB, free: 77.14 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007714/2.678, allocations: 3.683 MB / 0.9726 GB, free: 75.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005772/2.684, allocations: 0.5825 MB / 0.9731 GB, free: 75.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04288/2.727, allocations: 15.01 MB / 0.9878 GB, free: 70.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007828/2.735, allocations: 5.004 MB / 0.9927 GB, free: 68.68 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.008634/2.744, allocations: 2.893 MB / 0.9955 GB, free: 68.62 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00608/2.75, allocations: 3.249 MB / 0.9987 GB, free: 65.94 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/2.75, allocations: 0 / 0.9987 GB, free: 65.94 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5679/3.318, allocations: 133.1 MB / 1.129 GB, free: 83.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/3.318, allocations: 170 kB / 1.129 GB, free: 83.21 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.656/9.975, allocations: 0 / 1.129 GB, free: 83.21 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat