Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00105/0.00105, allocations: 197.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008517/0.0008515, allocations: 95.75 kB / 297.2 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002197/0.0002197, allocations: 8 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2157, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1126/0.3283, allocations: 104.6 MB / 0.5021 GB, free: 1.953 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.3286, allocations: 99.94 kB / 0.5022 GB, free: 1.855 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4719/0.8005, allocations: 146.9 MB / 0.6456 GB, free: 11.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.8006, allocations: 0 / 0.6456 GB, free: 11.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006146/0.8012, allocations: 148 kB / 0.6458 GB, free: 11.41 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.02602/0.8272, allocations: 8.277 MB / 0.6539 GB, free: 3.039 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.8273, allocations: 8.031 kB / 0.6539 GB, free: 3.031 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004838/0.8321, allocations: 1.186 MB / 0.655 GB, free: 1.836 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04284/0.875, allocations: 11.71 MB / 0.6665 GB, free: 6.094 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2635/1.139, allocations: 9.043 MB / 0.6753 GB, free: 67.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004898/1.139, allocations: 0.5235 MB / 0.6758 GB, free: 67.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002901/1.142, allocations: 0.7072 MB / 0.6765 GB, free: 67.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04008/1.182, allocations: 17.38 MB / 0.6935 GB, free: 64.36 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005205/1.183, allocations: 98.67 kB / 0.6936 GB, free: 64.36 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003135/1.186, allocations: 331.3 kB / 0.6939 GB, free: 64.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002306/1.188, allocations: 1.458 MB / 0.6953 GB, free: 64.34 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02829/1.216, allocations: 14.49 MB / 0.7095 GB, free: 64.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09168/1.308, allocations: 73.11 MB / 0.7809 GB, free: 15.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02342/1.332, allocations: 8.786 MB / 0.7894 GB, free: 13.44 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03583/1.368, allocations: 17.8 MB / 0.8068 GB, free: 15.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.271e-05/1.368, allocations: 70.11 kB / 0.8069 GB, free: 15.11 MB / 458.7 MB Notification: Performance of pre-optimization done (n=281): time 6.953e-06/1.368, allocations: 0 / 0.8069 GB, free: 15.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=374): time 0.4615/1.829, allocations: 70.19 MB / 0.8754 GB, free: 93.74 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.829, allocations: 375.3 kB / 0.8758 GB, free: 93.33 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008049/1.837, allocations: 5.488 MB / 0.8811 GB, free: 92.87 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001058/1.838, allocations: 80.45 kB / 0.8812 GB, free: 92.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002976/1.841, allocations: 4.865 MB / 0.886 GB, free: 90.67 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001724/1.843, allocations: 1.37 MB / 0.8873 GB, free: 89.86 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005397/1.844, allocations: 176.6 kB / 0.8875 GB, free: 89.86 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004114/1.844, allocations: 0.6876 MB / 0.8881 GB, free: 89.54 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006677/1.851, allocations: 5.495 MB / 0.8935 GB, free: 89.51 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008972/1.86, allocations: 10.46 MB / 0.9037 GB, free: 83.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008993/1.869, allocations: 7.409 MB / 0.911 GB, free: 81.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/1.869, allocations: 49.88 kB / 0.911 GB, free: 81.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=1165) (initialization): time 0.03886/1.908, allocations: 21.36 MB / 0.9319 GB, free: 74.52 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003416/1.908, allocations: 81.91 kB / 0.932 GB, free: 74.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004522/1.909, allocations: 173.5 kB / 0.9321 GB, free: 74.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01825/1.927, allocations: 6.524 MB / 0.9385 GB, free: 72.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007759/1.935, allocations: 2.052 MB / 0.9405 GB, free: 71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03992/1.975, allocations: 33.56 MB / 0.9733 GB, free: 42.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008732/1.984, allocations: 0.6965 MB / 0.9739 GB, free: 41.61 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001834/1.985, allocations: 0.5139 MB / 0.9744 GB, free: 41.12 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 787 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1023): * Single equations (assignments): 1016 * 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%) 67,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.007305/1.993, allocations: 3.44 MB / 0.9778 GB, free: 38.09 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.994, allocations: 0.5862 MB / 0.9784 GB, free: 37.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02682/2.021, allocations: 15.47 MB / 0.9935 GB, free: 24.98 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.488e-05/2.021, allocations: 52 kB / 0.9935 GB, free: 24.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.626e-05/2.021, allocations: 19.94 kB / 0.9936 GB, free: 24.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-05/2.021, allocations: 19.92 kB / 0.9936 GB, free: 24.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3039/2.325, allocations: 30.46 MB / 1.023 GB, free: 83.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.74e-05/2.325, allocations: 2.75 kB / 1.023 GB, free: 83.56 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003028/2.328, allocations: 0.5801 MB / 1.024 GB, free: 83.56 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01715/2.345, allocations: 6.148 MB / 1.03 GB, free: 83.53 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001008/2.346, allocations: 65.36 kB / 1.03 GB, free: 83.53 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03812/2.384, allocations: 31.92 MB / 1.061 GB, free: 79.59 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/2.385, allocations: 3.656 kB / 1.061 GB, free: 79.59 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03581/2.42, allocations: 23.13 MB / 1.084 GB, free: 72.38 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002355/2.423, allocations: 0.6069 MB / 1.084 GB, free: 72.26 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002125/2.425, allocations: 64.92 kB / 1.084 GB, free: 72.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004827/2.43, allocations: 403.1 kB / 1.085 GB, free: 72.17 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00128/2.431, allocations: 246.8 kB / 1.085 GB, free: 72.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003588/2.431, allocations: 94.31 kB / 1.085 GB, free: 72.11 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006644/2.438, allocations: 3.906 MB / 1.089 GB, free: 70.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.438, allocations: 0 / 1.089 GB, free: 70.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0109/2.449, allocations: 2.187 MB / 1.091 GB, free: 70.59 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * 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.03752/2.487, allocations: 24.4 MB / 1.115 GB, free: 57.58 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01976/2.506, allocations: 13.92 MB / 1.128 GB, free: 45.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/2.506, allocations: 2.953 kB / 1.128 GB, free: 45.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008759/2.515, allocations: 6.361 MB / 1.135 GB, free: 40.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005257/2.521, allocations: 0.8325 MB / 1.135 GB, free: 39.57 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3982/2.919, allocations: 198.1 MB / 1.329 GB, free: 20.74 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00665/2.925, allocations: 5.411 MB / 1.334 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.008544/2.934, allocations: 3.041 MB / 1.337 GB, free: 19.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00659/2.941, allocations: 3.389 MB / 1.341 GB, free: 19.76 MB / 0.5105 GB Notification: Performance of SimCode: time 1.894e-06/2.941, allocations: 1.812 kB / 1.341 GB, free: 19.76 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4932/3.434, allocations: 169.4 MB / 1.506 GB, free: 81.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/3.434, allocations: 227.9 kB / 1.506 GB, free: 81.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.166/9.6, allocations: 0 / 1.506 GB, free: 81.18 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat does not exist to compare? outputFormat=mat