Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000937/0.0009369, allocations: 96.92 kB / 297.3 MB, free: 6.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002404/0.0002404, allocations: 8 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2174, allocations: 51.47 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1181/0.3355, allocations: 96.52 MB / 0.4941 GB, free: 10.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.3358, allocations: 87.95 kB / 0.4942 GB, free: 9.977 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4605/0.7964, allocations: 128.6 MB / 0.6198 GB, free: 5.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7964, allocations: 8 kB / 0.6198 GB, free: 5.312 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004285/0.7969, allocations: 123.9 kB / 0.6199 GB, free: 5.191 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02398/0.8208, allocations: 7.209 MB / 0.627 GB, free: 13.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.8209, allocations: 11.97 kB / 0.627 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005349/0.8263, allocations: 1.202 MB / 0.6282 GB, free: 12.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03572/0.862, allocations: 9.555 MB / 0.6375 GB, free: 3.098 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02008/0.8821, allocations: 7.38 MB / 0.6447 GB, free: 11.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004139/0.8826, allocations: 435.4 kB / 0.6451 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002524/0.8851, allocations: 0.5739 MB / 0.6457 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02997/0.9151, allocations: 14.82 MB / 0.6601 GB, free: 10.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002903/0.9154, allocations: 87.17 kB / 0.6602 GB, free: 10.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001357/0.9168, allocations: 275.9 kB / 0.6605 GB, free: 10.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001944/0.9188, allocations: 1.443 MB / 0.6619 GB, free: 8.832 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2417/1.16, allocations: 13.01 MB / 0.6746 GB, free: 75.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06346/1.224, allocations: 64.66 MB / 0.7378 GB, free: 41.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.016/1.24, allocations: 7.873 MB / 0.7454 GB, free: 38.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.016/1.256, allocations: 12.94 MB / 0.7581 GB, free: 33.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.22e-05/1.256, allocations: 69.75 kB / 0.7581 GB, free: 33.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=340): time 6.102e-06/1.256, allocations: 2.906 kB / 0.7581 GB, free: 33.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=604): time 1.793/3.049, allocations: 266 MB / 1.018 GB, free: 96.91 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/3.049, allocations: 274.8 kB / 1.018 GB, free: 96.65 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007074/3.056, allocations: 4.721 MB / 1.023 GB, free: 96.38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001557/3.058, allocations: 124.5 kB / 1.023 GB, free: 96.34 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002356/3.06, allocations: 4.007 MB / 1.027 GB, free: 95.36 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002876/3.063, allocations: 2.108 MB / 1.029 GB, free: 94.05 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009799/3.064, allocations: 193.2 kB / 1.029 GB, free: 94.05 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003848/3.064, allocations: 0.713 MB / 1.03 GB, free: 93.73 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01298/3.077, allocations: 8.674 MB / 1.038 GB, free: 93.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01516/3.092, allocations: 12.78 MB / 1.051 GB, free: 88.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01461/3.107, allocations: 10.59 MB / 1.061 GB, free: 85.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002061/3.107, allocations: 37.97 kB / 1.061 GB, free: 85.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.09259/3.2, allocations: 40.33 MB / 1.1 GB, free: 73.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001928/3.2, allocations: 70.22 kB / 1.101 GB, free: 73.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001996/3.2, allocations: 136.3 kB / 1.101 GB, free: 73.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06117/3.262, allocations: 21.55 MB / 1.122 GB, free: 63.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004687/3.266, allocations: 1.44 MB / 1.123 GB, free: 62.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4381/3.704, allocations: 151.1 MB / 1.271 GB, free: 62.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01119/3.716, allocations: 0.7256 MB / 1.271 GB, free: 62.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003044/3.719, allocations: 0.5318 MB / 1.272 GB, free: 62.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (775): * Single equations (assignments): 768 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.00878/3.728, allocations: 3.116 MB / 1.275 GB, free: 60.48 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001959/3.73, allocations: 0.5947 MB / 1.276 GB, free: 60.2 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07116/3.801, allocations: 36.29 MB / 1.311 GB, free: 33.24 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.57e-05/3.801, allocations: 67.8 kB / 1.311 GB, free: 33.18 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000129/3.801, allocations: 67.06 kB / 1.311 GB, free: 33.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001069/3.801, allocations: 26.25 kB / 1.311 GB, free: 33.12 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3651/4.166, allocations: 57.19 MB / 1.367 GB, free: 90.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.745e-05/4.166, allocations: 3.688 kB / 1.367 GB, free: 90.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001483/4.168, allocations: 270.9 kB / 1.367 GB, free: 90.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05545/4.223, allocations: 20.76 MB / 1.388 GB, free: 90.12 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002064/4.225, allocations: 100.6 kB / 1.388 GB, free: 90.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1758/4.401, allocations: 138.9 MB / 1.523 GB, free: 12.58 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/4.401, allocations: 2.891 kB / 1.523 GB, free: 12.58 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3744/4.776, allocations: 48.8 MB / 1.571 GB, free: 92.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001949/4.778, allocations: 0.6185 MB / 1.571 GB, free: 91.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002548/4.78, allocations: 95.59 kB / 1.572 GB, free: 91.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006919/4.787, allocations: 0.495 MB / 1.572 GB, free: 91.98 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003777/4.791, allocations: 0.5052 MB / 1.573 GB, free: 91.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001209/4.792, allocations: 144.4 kB / 1.573 GB, free: 91.97 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005472/4.798, allocations: 3.384 MB / 1.576 GB, free: 91.79 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.81e-07/4.798, allocations: 1.969 kB / 1.576 GB, free: 91.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01622/4.814, allocations: 3.44 MB / 1.579 GB, free: 91.79 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.09037/4.904, allocations: 49.45 MB / 1.628 GB, free: 76.46 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03926/4.944, allocations: 24.53 MB / 1.652 GB, free: 55.15 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/4.944, allocations: 0 / 1.652 GB, free: 55.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02265/4.966, allocations: 13.8 MB / 1.665 GB, free: 43.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005273/4.972, allocations: 0.7088 MB / 1.666 GB, free: 42.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.44/5.412, allocations: 200.8 MB / 1.862 GB, free: 31.25 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005976/5.418, allocations: 5.303 MB / 1.867 GB, free: 30.38 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.004996/5.423, allocations: 2.091 MB / 1.869 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003199/5.426, allocations: 3.041 MB / 1.872 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of SimCode: time 9.81e-07/5.426, allocations: 3.281 kB / 1.872 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8146/6.241, allocations: 291 MB / 2.156 GB, free: 121.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/6.241, allocations: 207.5 kB / 2.156 GB, free: 121.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.835/14.08, allocations: 0 / 2.156 GB, free: 121.6 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat