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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001187/0.001187, allocations: 95.36 kB / 16.99 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001404/0.001404, allocations: 199.9 kB / 17.9 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002503/0.0002504, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1117, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.2932/0.405, allocations: 64.41 MB / 422.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.04217/0.4473, allocations: 15 MB / 437.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01958/0.4669, allocations: 335.1 kB / 437.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01429/0.4812, allocations: 3.223 MB / 441.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03417/0.5154, allocations: 9.232 MB / 450.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005425/0.5209, allocations: 0.9869 MB / 451.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0986/0.6195, allocations: 71.11 MB / 0.5102 GB, free: 6.945 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0112/0.6307, allocations: 6.542 MB / 0.5166 GB, free: 348 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004804/0.6356, allocations: 1.655 MB / 0.5182 GB, free: 14.68 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005072/0.6407, allocations: 2.231 MB / 0.5204 GB, free: 12.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002024/0.6427, allocations: 216 kB / 0.5206 GB, free: 12.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003854/0.6466, allocations: 1.073 MB / 0.5217 GB, free: 11.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004364/0.651, allocations: 2.408 MB / 0.524 GB, free: 8.742 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003048/0.6541, allocations: 1.224 MB / 0.5252 GB, free: 7.508 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4835/1.138, allocations: 8.112 MB / 0.5331 GB, free: 80.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/1.138, allocations: 0 / 0.5331 GB, free: 80.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.665e-06/1.138, allocations: 0 / 0.5331 GB, free: 80.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003796/1.138, allocations: 0.625 kB / 0.5331 GB, free: 80.69 MB / 446.1 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.02028/1.158, allocations: 6.966 MB / 0.54 GB, free: 78.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/1.158, allocations: 8.719 kB / 0.54 GB, free: 78.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003792/1.162, allocations: 1.08 MB / 0.541 GB, free: 77.92 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0611/1.223, allocations: 11.31 MB / 0.5521 GB, free: 77.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01327/1.237, allocations: 5.028 MB / 0.557 GB, free: 75.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003365/1.237, allocations: 346 kB / 0.5573 GB, free: 75.74 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002416/1.239, allocations: 466.7 kB / 0.5577 GB, free: 75.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02991/1.269, allocations: 14.67 MB / 0.5721 GB, free: 68.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003035/1.27, allocations: 73.52 kB / 0.5721 GB, free: 68.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001494/1.271, allocations: 211.2 kB / 0.5723 GB, free: 68.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004974/1.276, allocations: 2.841 MB / 0.5751 GB, free: 66.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02623/1.302, allocations: 13.23 MB / 0.588 GB, free: 57 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08114/1.384, allocations: 58.44 MB / 0.6451 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01806/1.402, allocations: 8.01 MB / 0.6529 GB, free: 1.266 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02853/1.43, allocations: 12.77 MB / 0.6654 GB, free: 4.465 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.815e-05/1.43, allocations: 64.7 kB / 0.6655 GB, free: 4.391 MB / 462.1 MB Notification: Performance of pre-optimization done (n=326): time 6.562e-06/1.43, allocations: 0 / 0.6655 GB, free: 4.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=572): time 2.051/3.481, allocations: 409.3 MB / 1.065 GB, free: 77.39 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/3.481, allocations: 265.6 kB / 1.065 GB, free: 77.07 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008447/3.49, allocations: 5.831 MB / 1.071 GB, free: 71.27 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.002437/3.492, allocations: 110.7 kB / 1.071 GB, free: 71.16 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002263/3.495, allocations: 4.009 MB / 1.075 GB, free: 67.17 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002982/3.498, allocations: 1.999 MB / 1.077 GB, free: 65.18 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001148/3.499, allocations: 191.4 kB / 1.077 GB, free: 65 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003781/3.499, allocations: 0.6946 MB / 1.078 GB, free: 64.3 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01304/3.512, allocations: 10.84 MB / 1.089 GB, free: 53.45 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0163/3.528, allocations: 14.92 MB / 1.103 GB, free: 36.65 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0161/3.545, allocations: 12.68 MB / 1.115 GB, free: 23.93 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.711e-05/3.545, allocations: 43.28 kB / 1.115 GB, free: 23.89 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.6075/4.152, allocations: 140.4 MB / 1.253 GB, free: 81.1 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.927e-05/4.152, allocations: 64 kB / 1.253 GB, free: 81.04 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001184/4.153, allocations: 140 kB / 1.253 GB, free: 80.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0765/4.229, allocations: 34.67 MB / 1.287 GB, free: 46.34 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004676/4.234, allocations: 1.474 MB / 1.288 GB, free: 44.86 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5002/4.734, allocations: 197.5 MB / 1.481 GB, free: 42.93 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01477/4.749, allocations: 1.715 MB / 1.483 GB, free: 41.23 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003591/4.752, allocations: 0.5232 MB / 1.483 GB, free: 40.71 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 626 * 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 (783): * Single equations (assignments): 776 * 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 {(20,40.5%) 164,(17,42.9%) 101,(2,100.0%) 7} * Non-linear torn systems: 1 {12 76} Notification: Performance of prepare postOptimizeDAE: time 0.007285/4.76, allocations: 3.094 MB / 1.486 GB, free: 37.77 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001871/4.762, allocations: 0.5793 MB / 1.487 GB, free: 37.43 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5664/5.328, allocations: 136.5 MB / 1.62 GB, free: 99.45 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001007/5.328, allocations: 56.55 kB / 1.62 GB, free: 99.4 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002296/5.328, allocations: 60 kB / 1.62 GB, free: 99.34 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001317/5.329, allocations: 23.91 kB / 1.62 GB, free: 99.32 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6254/5.954, allocations: 206.2 MB / 1.822 GB, free: 100.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.207e-05/5.954, allocations: 8 kB / 1.822 GB, free: 100.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/5.956, allocations: 330.4 kB / 1.822 GB, free: 100.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07222/6.028, allocations: 33.76 MB / 1.855 GB, free: 67.47 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002178/6.03, allocations: 100 kB / 1.855 GB, free: 67.37 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4455/6.476, allocations: 180.6 MB / 2.031 GB, free: 68.44 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/6.476, allocations: 15.78 kB / 2.031 GB, free: 68.43 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5594/7.035, allocations: 153.1 MB / 2.181 GB, free: 97.46 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/7.037, allocations: 0.6457 MB / 2.181 GB, free: 97.12 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00287/7.04, allocations: 97.08 kB / 2.182 GB, free: 97.02 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009883/7.05, allocations: 1.491 MB / 2.183 GB, free: 95.53 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003707/7.054, allocations: 0.4911 MB / 2.183 GB, free: 95.05 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001259/7.055, allocations: 145.1 kB / 2.184 GB, free: 94.91 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005045/7.06, allocations: 3.782 MB / 2.187 GB, free: 91.15 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.41e-07/7.06, allocations: 3.75 kB / 2.187 GB, free: 91.15 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.0147/7.075, allocations: 3.817 MB / 2.191 GB, free: 87.34 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * 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 {(20,40.5%) 157,(16,51.6%) 99,(2,100.0%) 7} * Non-linear torn systems: 1 {12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.5062/7.581, allocations: 154.8 MB / 2.342 GB, free: 111.7 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.04869/7.63, allocations: 33.36 MB / 2.375 GB, free: 80.27 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/7.63, allocations: 0 / 2.375 GB, free: 80.27 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.03397/7.664, allocations: 20.47 MB / 2.395 GB, free: 59.86 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004141/7.668, allocations: 0.7094 MB / 2.395 GB, free: 59.18 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7679/8.436, allocations: 308.2 MB / 2.696 GB, free: 138.5 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005309/8.441, allocations: 5.233 MB / 2.702 GB, free: 134.1 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.004356/8.445, allocations: 2.072 MB / 2.704 GB, free: 132.1 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002853/8.448, allocations: 3.035 MB / 2.707 GB, free: 130.9 MB / 0.4982 GB Notification: Performance of SimCode: time 8.01e-07/8.448, allocations: 0.9844 kB / 2.707 GB, free: 130.9 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.069/9.517, allocations: 324.6 MB / 3.024 GB, free: 140.5 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/9.517, allocations: 218.4 kB / 3.024 GB, free: 140.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.282/16.8, allocations: 0 / 3.024 GB, free: 140.3 MB / 0.4982 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