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.001326/0.001326, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0008789/0.0008791, allocations: 93.91 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.017e-05/3.02e-05, allocations: 4 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3924/0.5065, allocations: 104.9 MB / 499.2 MB, free: 14.58 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.5068, allocations: 87.95 kB / 499.3 MB, free: 14.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6557/1.163, allocations: 137.9 MB / 0.6223 GB, free: 82.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.256e-06/1.163, allocations: 0 / 0.6223 GB, free: 82.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003516/1.163, allocations: 132 kB / 0.6224 GB, free: 82.69 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.02364/1.187, allocations: 7.042 MB / 0.6293 GB, free: 75.57 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/1.187, allocations: 8.031 kB / 0.6293 GB, free: 75.56 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005726/1.192, allocations: 1.146 MB / 0.6304 GB, free: 74.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03136/1.224, allocations: 7.562 MB / 0.6378 GB, free: 66.82 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0246/1.248, allocations: 9.095 MB / 0.6467 GB, free: 57.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005683/1.249, allocations: 484.9 kB / 0.6471 GB, free: 57.17 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004062/1.253, allocations: 0.6481 MB / 0.6478 GB, free: 56.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04254/1.296, allocations: 16.58 MB / 0.664 GB, free: 38.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004441/1.296, allocations: 107 kB / 0.6641 GB, free: 38.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002191/1.298, allocations: 311.8 kB / 0.6644 GB, free: 38.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002274/1.301, allocations: 1.588 MB / 0.6659 GB, free: 36.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03006/1.331, allocations: 13.51 MB / 0.6791 GB, free: 22.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3965/1.727, allocations: 74.32 MB / 0.7517 GB, free: 44.56 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02255/1.75, allocations: 7.699 MB / 0.7592 GB, free: 43.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006377/1.756, allocations: 3.977 MB / 0.7631 GB, free: 43.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02654/1.783, allocations: 18.64 MB / 0.7813 GB, free: 38.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.179e-05/1.783, allocations: 72.52 kB / 0.7814 GB, free: 38.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=287): time 5.58e-06/1.783, allocations: 0 / 0.7814 GB, free: 38.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=370): time 0.1168/1.9, allocations: 38.74 MB / 0.8192 GB, free: 27.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/1.9, allocations: 277.3 kB / 0.8194 GB, free: 27.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008163/1.908, allocations: 5.265 MB / 0.8246 GB, free: 22.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001107/1.909, allocations: 84.73 kB / 0.8247 GB, free: 22.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003101/1.912, allocations: 4.756 MB / 0.8293 GB, free: 18.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001973/1.914, allocations: 1.355 MB / 0.8306 GB, free: 17.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005849/1.915, allocations: 187.9 kB / 0.8308 GB, free: 17.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003884/1.915, allocations: 0.7046 MB / 0.8315 GB, free: 16.53 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004886/1.92, allocations: 3.666 MB / 0.8351 GB, free: 13.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007442/1.928, allocations: 8.871 MB / 0.8437 GB, free: 2.523 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/1.94, allocations: 5.862 MB / 0.8495 GB, free: 14.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001865/1.94, allocations: 52 kB / 0.8495 GB, free: 14.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=1208) (initialization): time 0.03785/1.978, allocations: 15.87 MB / 0.865 GB, free: 1.789 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001434/1.978, allocations: 84.19 kB / 0.8651 GB, free: 1.707 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002807/1.979, allocations: 184 kB / 0.8653 GB, free: 1.527 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01327/1.992, allocations: 4.022 MB / 0.8692 GB, free: 14.04 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008098/2, allocations: 2.042 MB / 0.8712 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03218/2.032, allocations: 20.79 MB / 0.8915 GB, free: 6.957 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009396/2.042, allocations: 0.5461 MB / 0.892 GB, free: 6.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002558/2.044, allocations: 0.5234 MB / 0.8925 GB, free: 5.887 MB / 490.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.002758/2.047, allocations: 0.8067 MB / 0.8933 GB, free: 5.078 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00174/2.049, allocations: 0.5708 MB / 0.8939 GB, free: 4.5 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3362/2.385, allocations: 9.436 MB / 0.9031 GB, free: 129.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.945e-05/2.385, allocations: 37.5 kB / 0.9031 GB, free: 129.6 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.779e-05/2.385, allocations: 19.25 kB / 0.9032 GB, free: 129.6 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001285/2.385, allocations: 16.41 kB / 0.9032 GB, free: 129.6 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04748/2.433, allocations: 18.94 MB / 0.9217 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.949e-05/2.433, allocations: 4.406 kB / 0.9217 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002942/2.436, allocations: 0.5072 MB / 0.9222 GB, free: 128.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01176/2.448, allocations: 3.569 MB / 0.9256 GB, free: 128.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009632/2.449, allocations: 59.84 kB / 0.9257 GB, free: 128.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03999/2.489, allocations: 18.72 MB / 0.944 GB, free: 122.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/2.489, allocations: 0 / 0.944 GB, free: 122.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03318/2.522, allocations: 13.95 MB / 0.9576 GB, free: 117.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002725/2.525, allocations: 0.584 MB / 0.9582 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002686/2.527, allocations: 57.59 kB / 0.9582 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005491/2.533, allocations: 220.5 kB / 0.9584 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001615/2.535, allocations: 230 kB / 0.9587 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000468/2.535, allocations: 84.69 kB / 0.9587 GB, free: 117.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0101/2.545, allocations: 3.679 MB / 0.9623 GB, free: 116.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.91e-07/2.545, allocations: 0 / 0.9623 GB, free: 116.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01264/2.558, allocations: 1.855 MB / 0.9641 GB, free: 116 MB / 490.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.02709/2.585, allocations: 14.82 MB / 0.9786 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01642/2.602, allocations: 9.496 MB / 0.9879 GB, free: 99.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/2.602, allocations: 0.625 kB / 0.9879 GB, free: 99.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006591/2.608, allocations: 3.728 MB / 0.9915 GB, free: 95.66 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005465/2.614, allocations: 0.7191 MB / 0.9922 GB, free: 95.07 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04623/2.66, allocations: 15.32 MB / 1.007 GB, free: 81.98 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005873/2.666, allocations: 5.008 MB / 1.012 GB, free: 78.34 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007363/2.673, allocations: 2.813 MB / 1.015 GB, free: 76.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004839/2.678, allocations: 3.252 MB / 1.018 GB, free: 72.96 MB / 490.7 MB Notification: Performance of SimCode: time 1.042e-06/2.678, allocations: 0 / 1.018 GB, free: 72.96 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5706/3.249, allocations: 140.9 MB / 1.156 GB, free: 86.96 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/3.249, allocations: 202.7 kB / 1.156 GB, free: 86.73 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.148/10.4, allocations: 0 / 1.156 GB, free: 86.73 MB / 490.7 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