Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, 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.293/1.293, allocations: 227.2 MB / 245 MB, free: 7.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008482/0.0008482, allocations: 108 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002186/0.0002188, allocations: 8 kB / 358 MB, free: 9.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.208, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.324, allocations: 102.1 MB / 0.4996 GB, free: 4.484 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.3243, allocations: 87.95 kB / 0.4997 GB, free: 4.398 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4745/0.7989, allocations: 130.8 MB / 0.6274 GB, free: 13.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.799, allocations: 0 / 0.6274 GB, free: 13.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004061/0.7994, allocations: 123.9 kB / 0.6275 GB, free: 13.56 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02306/0.8224, allocations: 6.786 MB / 0.6341 GB, free: 6.691 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.8225, allocations: 8.031 kB / 0.6341 GB, free: 6.684 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00507/0.8276, allocations: 1.316 MB / 0.6354 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03148/0.8591, allocations: 8.306 MB / 0.6435 GB, free: 13.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/0.8769, allocations: 6.358 MB / 0.6497 GB, free: 6.609 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000486/0.8774, allocations: 451.8 kB / 0.6502 GB, free: 6.168 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003106/0.8805, allocations: 0.5857 MB / 0.6507 GB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03162/0.9121, allocations: 15.72 MB / 0.6661 GB, free: 4.691 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002488/0.9124, allocations: 79.25 kB / 0.6662 GB, free: 4.613 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/0.9136, allocations: 287.8 kB / 0.6664 GB, free: 4.332 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002/0.9156, allocations: 1.624 MB / 0.668 GB, free: 2.707 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2434/1.159, allocations: 13.96 MB / 0.6817 GB, free: 75.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06571/1.225, allocations: 64.04 MB / 0.7442 GB, free: 39.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/1.236, allocations: 6.436 MB / 0.7505 GB, free: 36.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01904/1.255, allocations: 14.29 MB / 0.7644 GB, free: 29.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/1.256, allocations: 57.19 kB / 0.7645 GB, free: 29.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 5.049e-06/1.256, allocations: 3.156 kB / 0.7645 GB, free: 29.51 MB / 442.7 MB Notification: Performance of matching and sorting (n=336): time 0.1237/1.379, allocations: 42.08 MB / 0.8056 GB, free: 5.266 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.78e-05/1.379, allocations: 221.5 kB / 0.8058 GB, free: 5.012 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006392/1.386, allocations: 4.82 MB / 0.8105 GB, free: 1.027 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007661/1.387, allocations: 77.14 kB / 0.8106 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002744/1.389, allocations: 4.433 MB / 0.8149 GB, free: 12.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001602/1.391, allocations: 1.244 MB / 0.8161 GB, free: 11.89 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004777/1.391, allocations: 172 kB / 0.8163 GB, free: 11.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004561/1.392, allocations: 0.6832 MB / 0.817 GB, free: 11.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006136/1.398, allocations: 4.541 MB / 0.8214 GB, free: 7.027 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009506/1.408, allocations: 9.505 MB / 0.8307 GB, free: 11.17 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009995/1.418, allocations: 6.417 MB / 0.8369 GB, free: 4.734 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001479/1.418, allocations: 48 kB / 0.837 GB, free: 4.688 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.2421/1.66, allocations: 18.68 MB / 0.8552 GB, free: 99.18 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.394e-05/1.66, allocations: 79.22 kB / 0.8553 GB, free: 99.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001753/1.66, allocations: 174.3 kB / 0.8555 GB, free: 99.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/1.68, allocations: 5.637 MB / 0.861 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006818/1.687, allocations: 2.047 MB / 0.863 GB, free: 99.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02556/1.712, allocations: 24.3 MB / 0.8867 GB, free: 95.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007078/1.72, allocations: 0.5402 MB / 0.8872 GB, free: 95.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001549/1.721, allocations: 0.5015 MB / 0.8877 GB, free: 94.95 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1060): * Single equations (assignments): 1052 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005372/1.727, allocations: 3.098 MB / 0.8908 GB, free: 93.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009695/1.727, allocations: 0.493 MB / 0.8912 GB, free: 93.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02626/1.754, allocations: 12.35 MB / 0.9033 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.613e-05/1.754, allocations: 55.73 kB / 0.9033 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/1.754, allocations: 13.58 kB / 0.9034 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-05/1.754, allocations: 15.75 kB / 0.9034 GB, free: 89.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04277/1.797, allocations: 23.94 MB / 0.9267 GB, free: 79.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.652e-05/1.797, allocations: 4 kB / 0.9268 GB, free: 79.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002931/1.8, allocations: 0.5696 MB / 0.9273 GB, free: 78.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01702/1.817, allocations: 4.64 MB / 0.9318 GB, free: 76.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007021/1.818, allocations: 65.22 kB / 0.9319 GB, free: 76.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0203/1.838, allocations: 19.58 MB / 0.951 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/1.838, allocations: 11.34 kB / 0.951 GB, free: 58.69 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02835/1.866, allocations: 17.37 MB / 0.968 GB, free: 41.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00151/1.868, allocations: 0.5267 MB / 0.9685 GB, free: 40.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008264/1.869, allocations: 55.98 kB / 0.9686 GB, free: 40.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002553/1.871, allocations: 252.4 kB / 0.9688 GB, free: 40.36 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005426/1.872, allocations: 188 kB / 0.969 GB, free: 40.17 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002436/1.872, allocations: 85.2 kB / 0.9691 GB, free: 40.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004162/1.876, allocations: 3.354 MB / 0.9723 GB, free: 36.76 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.876, allocations: 0 / 0.9723 GB, free: 36.76 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006199/1.882, allocations: 1.709 MB / 0.974 GB, free: 35.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02842/1.911, allocations: 19.09 MB / 0.9926 GB, free: 15.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01478/1.926, allocations: 10.46 MB / 1.003 GB, free: 5.371 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/1.926, allocations: 4 kB / 1.003 GB, free: 5.367 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004491/1.93, allocations: 3.958 MB / 1.007 GB, free: 1.402 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002896/1.933, allocations: 0.5717 MB / 1.007 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/2.227, allocations: 150.3 MB / 1.154 GB, free: 26.76 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006552/2.234, allocations: 4.75 MB / 1.159 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00708/2.241, allocations: 2.985 MB / 1.162 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004285/2.245, allocations: 2.919 MB / 1.164 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of SimCode: time 2.775e-06/2.246, allocations: 3.094 kB / 1.164 GB, free: 25.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4275/2.673, allocations: 133 MB / 1.294 GB, free: 154.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00014/2.673, allocations: 206.1 kB / 1.294 GB, free: 154.6 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.118/7.791, allocations: 0 / 1.294 GB, free: 154.6 MB / 0.5261 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat