Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001363/0.001363, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000817/0.0008169, allocations: 102.7 kB / 297.2 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002497, allocations: 8 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2064, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1368/0.3432, allocations: 105.8 MB / 0.5032 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.3436, allocations: 101 kB / 0.5033 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4427/0.7863, allocations: 114.9 MB / 0.6156 GB, free: 10.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7863, allocations: 0 / 0.6156 GB, free: 10.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004271/0.7868, allocations: 104 kB / 0.6157 GB, free: 10.55 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01921/0.806, allocations: 5.386 MB / 0.6209 GB, free: 5.094 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.8061, allocations: 12.02 kB / 0.621 GB, free: 5.082 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004385/0.8105, allocations: 1.04 MB / 0.622 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02625/0.8367, allocations: 6.896 MB / 0.6287 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0169/0.8537, allocations: 5.851 MB / 0.6344 GB, free: 7.207 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004566/0.8542, allocations: 394.3 kB / 0.6348 GB, free: 6.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002532/0.8567, allocations: 0.5114 MB / 0.6353 GB, free: 6.309 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02715/0.8839, allocations: 12.67 MB / 0.6477 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002133/0.8841, allocations: 63.38 kB / 0.6477 GB, free: 8.609 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008295/0.885, allocations: 243.9 kB / 0.648 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00126/0.8862, allocations: 1.051 MB / 0.649 GB, free: 7.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01982/0.9061, allocations: 10.54 MB / 0.6593 GB, free: 12.77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2527/1.159, allocations: 50.18 MB / 0.7083 GB, free: 52.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01138/1.17, allocations: 4.805 MB / 0.713 GB, free: 51.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01192/1.182, allocations: 7.018 MB / 0.7198 GB, free: 49.51 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/1.182, allocations: 50.34 kB / 0.7199 GB, free: 49.47 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 4.188e-06/1.182, allocations: 0 / 0.7199 GB, free: 49.47 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.0618/1.244, allocations: 20.24 MB / 0.7396 GB, free: 46.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/1.244, allocations: 203.8 kB / 0.7398 GB, free: 45.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004562/1.249, allocations: 3.926 MB / 0.7437 GB, free: 45.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/1.249, allocations: 64.05 kB / 0.7437 GB, free: 45.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/1.251, allocations: 3.568 MB / 0.7472 GB, free: 43.75 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005861/1.251, allocations: 0.8428 MB / 0.748 GB, free: 43.27 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/1.251, allocations: 128.7 kB / 0.7482 GB, free: 43.27 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002355/1.252, allocations: 0.5778 MB / 0.7487 GB, free: 42.95 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002424/1.254, allocations: 2.162 MB / 0.7508 GB, free: 42.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00356/1.258, allocations: 5.913 MB / 0.7566 GB, free: 37.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003778/1.261, allocations: 3.52 MB / 0.76 GB, free: 35.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.244e-05/1.262, allocations: 37.47 kB / 0.7601 GB, free: 35.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.01224/1.274, allocations: 8.796 MB / 0.7687 GB, free: 33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.373e-05/1.274, allocations: 63.22 kB / 0.7687 GB, free: 33 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001167/1.274, allocations: 129.8 kB / 0.7689 GB, free: 33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002828/1.277, allocations: 1.046 MB / 0.7699 GB, free: 32.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004151/1.281, allocations: 1.422 MB / 0.7713 GB, free: 32.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008361/1.289, allocations: 7.124 MB / 0.7782 GB, free: 28.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004705/1.294, allocations: 334.3 kB / 0.7785 GB, free: 28.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008176/1.295, allocations: 387.3 kB / 0.7789 GB, free: 27.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 603 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (771): * Single equations (assignments): 767 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003769/1.299, allocations: 2.484 MB / 0.7813 GB, free: 25.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006862/1.299, allocations: 406.8 kB / 0.7817 GB, free: 25.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006346/1.306, allocations: 3.666 MB / 0.7853 GB, free: 22.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.768e-05/1.306, allocations: 25.09 kB / 0.7853 GB, free: 22.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/1.306, allocations: 8 kB / 0.7853 GB, free: 22.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/1.306, allocations: 10.73 kB / 0.7853 GB, free: 22.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01644/1.322, allocations: 9.861 MB / 0.795 GB, free: 14.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/1.322, allocations: 8.656 kB / 0.795 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/1.324, allocations: 350.8 kB / 0.7953 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/1.326, allocations: 0.8059 MB / 0.7961 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000214/1.327, allocations: 43.95 kB / 0.7961 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006806/1.334, allocations: 5.845 MB / 0.8019 GB, free: 8.059 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/1.334, allocations: 4 kB / 0.8019 GB, free: 8.055 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008605/1.342, allocations: 7.019 MB / 0.8087 GB, free: 1.582 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/1.343, allocations: 446 kB / 0.8091 GB, free: 1.137 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004113/1.344, allocations: 44.02 kB / 0.8092 GB, free: 1.094 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/1.345, allocations: 106.2 kB / 0.8093 GB, free: 1.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002665/1.346, allocations: 144 kB / 0.8094 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/1.346, allocations: 76.39 kB / 0.8095 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008066/1.354, allocations: 3.099 MB / 0.8125 GB, free: 15.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.354, allocations: 0 / 0.8125 GB, free: 15.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005673/1.359, allocations: 1.187 MB / 0.8137 GB, free: 14.24 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01143/1.371, allocations: 8.97 MB / 0.8224 GB, free: 5.949 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007988/1.379, allocations: 5.412 MB / 0.8277 GB, free: 1.164 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/1.379, allocations: 4.438 kB / 0.8277 GB, free: 1.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00252/1.381, allocations: 1.807 MB / 0.8295 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/1.384, allocations: 0.5067 MB / 0.83 GB, free: 15.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.258/1.642, allocations: 113.7 MB / 0.9411 GB, free: 28.58 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007531/1.65, allocations: 3.985 MB / 0.9449 GB, free: 27.77 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005863/1.655, allocations: 1.944 MB / 0.9468 GB, free: 27.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00338/1.659, allocations: 2.31 MB / 0.9491 GB, free: 27.72 MB / 490.7 MB Notification: Performance of SimCode: time 1.152e-06/1.659, allocations: 0 / 0.9491 GB, free: 27.72 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.393/2.052, allocations: 89.23 MB / 1.036 GB, free: 112.6 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/2.052, allocations: 216.2 kB / 1.036 GB, free: 112.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.485/6.537, allocations: 2.406 kB / 1.036 GB, free: 112.3 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat