Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001494/0.001494, allocations: 177.9 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.987/1.987, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001104, allocations: 89.11 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.364e-05, allocations: 7.938 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3535/0.3536, allocations: 47.55 MB / 362.4 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1685/0.5221, allocations: 102.2 MB / 464.6 MB, free: 100 kB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.5225, allocations: 84.8 kB / 464.7 MB, free: 16 kB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8172/1.34, allocations: 137.1 MB / 0.5877 GB, free: 54.36 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.217e-06/1.34, allocations: 0 / 0.5877 GB, free: 54.36 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0008091/1.341, allocations: 144 kB / 0.5878 GB, free: 54.21 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.04259/1.383, allocations: 7.495 MB / 0.5952 GB, free: 46.66 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.461e-05/1.383, allocations: 12.03 kB / 0.5952 GB, free: 46.65 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1242/1.508, allocations: 11.73 MB / 0.6066 GB, free: 34.89 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05461/1.562, allocations: 10.52 MB / 0.6169 GB, free: 24.39 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008258/1.563, allocations: 224 kB / 0.6171 GB, free: 24.17 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004879/1.568, allocations: 435.7 kB / 0.6175 GB, free: 23.75 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03352/1.602, allocations: 9.857 MB / 0.6272 GB, free: 13.89 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/1.639, allocations: 14.61 MB / 0.6414 GB, free: 13.96 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005359/1.64, allocations: 103.1 kB / 0.6415 GB, free: 13.86 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002653/1.642, allocations: 36 kB / 0.6416 GB, free: 13.83 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003817/1.646, allocations: 1.461 MB / 0.643 GB, free: 12.37 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4246/2.071, allocations: 71.45 MB / 0.7128 GB, free: 35.12 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/2.082, allocations: 6.014 MB / 0.7186 GB, free: 34.31 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008296/2.091, allocations: 4.613 MB / 0.7231 GB, free: 32.3 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001651/2.092, allocations: 0.8642 MB / 0.724 GB, free: 31.6 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.74e-05/2.093, allocations: 68.52 kB / 0.724 GB, free: 31.54 MB / 411.1 MB Notification: Performance of pre-optimization done (n=292): time 6.613e-06/2.093, allocations: 0 / 0.724 GB, free: 31.54 MB / 411.1 MB Notification: Performance of matching and sorting (n=385): time 0.2183/2.311, allocations: 53.42 MB / 0.7762 GB, free: 5.68 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001285/2.311, allocations: 376.7 kB / 0.7766 GB, free: 5.23 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01253/2.324, allocations: 4.849 MB / 0.7813 GB, free: 1.074 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001186/2.325, allocations: 25.7 kB / 0.7813 GB, free: 1.043 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005461/2.33, allocations: 4.726 MB / 0.7859 GB, free: 12.84 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00304/2.333, allocations: 1.364 MB / 0.7873 GB, free: 11.61 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/2.335, allocations: 3.031 kB / 0.7873 GB, free: 11.61 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.000943/2.336, allocations: 0.7014 MB / 0.788 GB, free: 11.01 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01353/2.35, allocations: 5.33 MB / 0.7932 GB, free: 6.191 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01927/2.369, allocations: 10.36 MB / 0.8033 GB, free: 10.12 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01773/2.387, allocations: 7.304 MB / 0.8104 GB, free: 3.941 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002162/2.387, allocations: 52 kB / 0.8105 GB, free: 3.891 MB / 443.1 MB Notification: Performance of matching and sorting (n=1197) (initialization): time 0.3767/2.764, allocations: 20.15 MB / 0.8302 GB, free: 96.8 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001801/2.764, allocations: 84.69 kB / 0.8302 GB, free: 96.8 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003807/2.764, allocations: 176.8 kB / 0.8304 GB, free: 96.8 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03791/2.802, allocations: 6.516 MB / 0.8368 GB, free: 96.75 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01467/2.817, allocations: 2.108 MB / 0.8388 GB, free: 96.58 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06652/2.883, allocations: 30.5 MB / 0.8686 GB, free: 88.58 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01275/2.896, allocations: 0.5237 MB / 0.8691 GB, free: 88.58 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002589/2.899, allocations: 0.5249 MB / 0.8696 GB, free: 88.51 MB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1053): * Single equations (assignments): 1046 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,77.8%) 69,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002949/2.902, allocations: 0.5524 MB / 0.8702 GB, free: 88.17 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05024/2.952, allocations: 14.78 MB / 0.8846 GB, free: 83.82 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002292/2.954, allocations: 0.5606 MB / 0.8851 GB, free: 83.55 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05104/3.005, allocations: 15.19 MB / 0.9 GB, free: 74.25 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001455/3.006, allocations: 52.03 kB / 0.9 GB, free: 74.21 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.17e-05/3.006, allocations: 16 kB / 0.9 GB, free: 74.19 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-05/3.006, allocations: 16.78 kB / 0.9001 GB, free: 74.19 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08341/3.089, allocations: 29.42 MB / 0.9288 GB, free: 47.34 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.246e-05/3.089, allocations: 4 kB / 0.9288 GB, free: 47.34 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005975/3.095, allocations: 0.5993 MB / 0.9294 GB, free: 46.74 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03392/3.129, allocations: 6.108 MB / 0.9353 GB, free: 40.68 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00109/3.13, allocations: 8 kB / 0.9354 GB, free: 40.67 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06113/3.192, allocations: 28.59 MB / 0.9633 GB, free: 11.77 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.158e-05/3.192, allocations: 5.422 kB / 0.9633 GB, free: 11.77 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3822/3.574, allocations: 22.91 MB / 0.9857 GB, free: 104.3 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006073/3.58, allocations: 1.547 MB / 0.9872 GB, free: 104.2 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002415/3.582, allocations: 8.25 kB / 0.9872 GB, free: 104.2 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007842/3.59, allocations: 350.2 kB / 0.9875 GB, free: 104.2 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/3.592, allocations: 259.9 kB / 0.9878 GB, free: 104.2 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008319/3.593, allocations: 92.72 kB / 0.9878 GB, free: 104.2 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.008897/3.602, allocations: 3.335 MB / 0.9911 GB, free: 104 MB / 459.1 MB Notification: Performance of sort global known variables: time 8.41e-07/3.602, allocations: 2.297 kB / 0.9911 GB, free: 104 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.01464/3.617, allocations: 1.932 MB / 0.993 GB, free: 104 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 247 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.06965/3.686, allocations: 24.27 MB / 1.017 GB, free: 101.1 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.03119/3.718, allocations: 13.41 MB / 1.03 GB, free: 96.11 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/3.718, allocations: 0 / 1.03 GB, free: 96.11 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01562/3.733, allocations: 6.195 MB / 1.036 GB, free: 93.42 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006943/3.74, allocations: 0.7262 MB / 1.037 GB, free: 93.17 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0587/3.799, allocations: 19.64 MB / 1.056 GB, free: 85.92 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/3.812, allocations: 5.44 MB / 1.061 GB, free: 81.93 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009208/3.821, allocations: 3.456 MB / 1.064 GB, free: 78.71 MB / 459.1 MB Notification: Performance of SimCode: time 1.583e-06/3.821, allocations: 4 kB / 1.064 GB, free: 78.71 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.146/9.967, allocations: 239 MB / 1.298 GB, free: 7.41 MB / 475.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat