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.003159/0.00316, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009917/0.0009917, allocations: 89.34 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.956e-05/3.977e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1313, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.445/0.5764, allocations: 96.45 MB / 498.6 MB, free: 9.266 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.5767, allocations: 86.38 kB / 498.7 MB, free: 9.223 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.616/1.193, allocations: 128.6 MB / 0.6126 GB, free: 75.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.193, allocations: 2.625 kB / 0.6126 GB, free: 75.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008167/1.194, allocations: 121 kB / 0.6127 GB, free: 75.98 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02746/1.221, allocations: 6.624 MB / 0.6192 GB, free: 73.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/1.221, allocations: 8.531 kB / 0.6192 GB, free: 73.59 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006119/1.227, allocations: 1.203 MB / 0.6204 GB, free: 73.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03953/1.267, allocations: 9.57 MB / 0.6297 GB, free: 73.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02249/1.289, allocations: 7.336 MB / 0.6369 GB, free: 72.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005665/1.29, allocations: 431.7 kB / 0.6373 GB, free: 72.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003913/1.294, allocations: 0.5777 MB / 0.6379 GB, free: 72.13 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03889/1.333, allocations: 14.71 MB / 0.6522 GB, free: 66.69 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006167/1.334, allocations: 93.39 kB / 0.6523 GB, free: 66.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003473/1.337, allocations: 281 kB / 0.6526 GB, free: 66.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002532/1.34, allocations: 1.449 MB / 0.654 GB, free: 66.22 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0282/1.368, allocations: 12.83 MB / 0.6665 GB, free: 62.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07565/1.444, allocations: 64.66 MB / 0.7297 GB, free: 3.059 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0185/1.462, allocations: 7.813 MB / 0.7373 GB, free: 11.11 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006538/1.469, allocations: 5.156 MB / 0.7423 GB, free: 5.945 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.305/1.774, allocations: 12.93 MB / 0.755 GB, free: 84.99 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.567e-05/1.774, allocations: 73.64 kB / 0.755 GB, free: 84.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=340): time 7.273e-06/1.774, allocations: 0 / 0.755 GB, free: 84.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=604): time 0.2541/2.028, allocations: 79.61 MB / 0.8328 GB, free: 73.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000157/2.028, allocations: 272.1 kB / 0.833 GB, free: 73.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/2.039, allocations: 4.679 MB / 0.8376 GB, free: 71.81 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00234/2.042, allocations: 117 kB / 0.8377 GB, free: 71.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003998/2.046, allocations: 4.002 MB / 0.8416 GB, free: 68.78 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004266/2.05, allocations: 2.109 MB / 0.8437 GB, free: 67.18 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002598/2.053, allocations: 198.7 kB / 0.8439 GB, free: 67.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001004/2.054, allocations: 0.7171 MB / 0.8446 GB, free: 66.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01287/2.067, allocations: 8.559 MB / 0.8529 GB, free: 59.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01615/2.083, allocations: 12.66 MB / 0.8653 GB, free: 45.52 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01578/2.099, allocations: 10.51 MB / 0.8756 GB, free: 36.22 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001773/2.099, allocations: 40 kB / 0.8756 GB, free: 36.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=1236) (initialization): time 0.09697/2.196, allocations: 40.1 MB / 0.9148 GB, free: 11.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003038/2.196, allocations: 65.56 kB / 0.9148 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004048/2.197, allocations: 136.8 kB / 0.9149 GB, free: 11.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4653/2.662, allocations: 21.51 MB / 0.9359 GB, free: 85.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00789/2.67, allocations: 1.44 MB / 0.9374 GB, free: 85.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2528/2.923, allocations: 144.4 MB / 1.078 GB, free: 7.879 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01233/2.935, allocations: 0.7301 MB / 1.079 GB, free: 7.375 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003069/2.938, allocations: 0.5291 MB / 1.08 GB, free: 6.906 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 () * 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.004003/2.942, allocations: 0.7256 MB / 1.08 GB, free: 6.402 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002136/2.944, allocations: 0.5905 MB / 1.081 GB, free: 5.941 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4192/3.364, allocations: 36.13 MB / 1.116 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001531/3.364, allocations: 61.3 kB / 1.116 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002098/3.364, allocations: 64.22 kB / 1.116 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000142/3.364, allocations: 28.45 kB / 1.116 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1448/3.509, allocations: 57.01 MB / 1.172 GB, free: 88.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001258/3.509, allocations: 0 / 1.172 GB, free: 88.42 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002621/3.512, allocations: 267 kB / 1.172 GB, free: 88.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.07336/3.585, allocations: 20.72 MB / 1.192 GB, free: 82.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002215/3.588, allocations: 98.03 kB / 1.193 GB, free: 82.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5289/4.116, allocations: 132.2 MB / 1.322 GB, free: 85.61 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/4.117, allocations: 9.594 kB / 1.322 GB, free: 85.61 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09031/4.207, allocations: 48.53 MB / 1.369 GB, free: 68.85 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002247/4.209, allocations: 0.6185 MB / 1.37 GB, free: 68.24 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003843/4.213, allocations: 102.3 kB / 1.37 GB, free: 68.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00844/4.221, allocations: 0.4928 MB / 1.37 GB, free: 67.86 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004374/4.226, allocations: 0.5072 MB / 1.371 GB, free: 67.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001469/4.227, allocations: 139.4 kB / 1.371 GB, free: 67.41 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006969/4.234, allocations: 3.333 MB / 1.374 GB, free: 64.48 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.12e-07/4.234, allocations: 0 / 1.374 GB, free: 64.48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01724/4.252, allocations: 3.44 MB / 1.377 GB, free: 61.06 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 () * 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.1031/4.355, allocations: 49.2 MB / 1.426 GB, free: 19.42 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3842/4.739, allocations: 24.19 MB / 1.449 GB, free: 91.14 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/4.739, allocations: 1.281 kB / 1.449 GB, free: 91.14 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02443/4.763, allocations: 13.58 MB / 1.462 GB, free: 90.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006341/4.77, allocations: 0.704 MB / 1.463 GB, free: 90.17 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05509/4.825, allocations: 23.26 MB / 1.486 GB, free: 87.66 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0092/4.834, allocations: 5.308 MB / 1.491 GB, free: 86.79 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005662/4.84, allocations: 2.083 MB / 1.493 GB, free: 86.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004588/4.845, allocations: 3.049 MB / 1.496 GB, free: 84.71 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/4.845, allocations: 0 / 1.496 GB, free: 84.71 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7588/5.603, allocations: 291.3 MB / 1.78 GB, free: 152 kB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/5.604, allocations: 186.9 kB / 1.781 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.913/15.52, allocations: 0 / 1.781 GB, free: 15.93 MB / 0.5105 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