Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008363/0.000836, allocations: 88.53 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008349/0.000835, allocations: 183.1 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.2 MB / 241.2 MB, free: 5.312 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002887, allocations: 9.562 kB / 300.9 MB, free: 5.656 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1283, allocations: 50.43 MB / 351.3 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04526/0.1736, allocations: 48.4 MB / 399.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02768/0.2013, allocations: 10.63 MB / 410.4 MB, free: 208 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01202/0.2134, allocations: 235.4 kB / 410.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009175/0.2226, allocations: 2.508 MB / 413.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02454/0.2472, allocations: 7.591 MB / 420.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004465/0.2517, allocations: 0.862 MB / 421.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.3572/0.6089, allocations: 62.83 MB / 484.4 MB, free: 348 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008068/0.617, allocations: 5.02 MB / 489.4 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003953/0.621, allocations: 1.873 MB / 491.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004979/0.626, allocations: 3.111 MB / 494.4 MB, free: 9.266 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.6271, allocations: 243.3 kB / 494.6 MB, free: 9.031 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.6298, allocations: 1.131 MB / 495.8 MB, free: 8.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002834/0.6327, allocations: 2.568 MB / 498.3 MB, free: 6.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00175/0.6344, allocations: 1.199 MB / 499.5 MB, free: 5.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009238/0.6437, allocations: 8.083 MB / 0.4957 GB, free: 14.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.6437, allocations: 0 / 0.4957 GB, free: 14.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.669e-06/0.6437, allocations: 4 kB / 0.4957 GB, free: 14.87 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004296/0.6442, allocations: 0 / 0.4957 GB, free: 14.87 MB / 398.1 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.01609/0.6603, allocations: 6.297 MB / 0.5019 GB, free: 9.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.294e-05/0.6603, allocations: 12.02 kB / 0.5019 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005381/0.6657, allocations: 1.132 MB / 0.503 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03884/0.7046, allocations: 7.64 MB / 0.5105 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01413/0.7188, allocations: 4.715 MB / 0.5151 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004345/0.7193, allocations: 315 kB / 0.5154 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003009/0.7223, allocations: 435.4 kB / 0.5158 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03803/0.7604, allocations: 15.6 MB / 0.531 GB, free: 1.199 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003954/0.7608, allocations: 64.73 kB / 0.5311 GB, free: 1.164 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002229/0.7631, allocations: 202.5 kB / 0.5313 GB, free: 1.105 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00563/0.7687, allocations: 3.219 MB / 0.5344 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03042/0.7992, allocations: 13.86 MB / 0.5479 GB, free: 4.246 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3467/1.146, allocations: 57.36 MB / 0.604 GB, free: 141.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01451/1.16, allocations: 6.484 MB / 0.6103 GB, free: 139.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005676/1.166, allocations: 3.563 MB / 0.6138 GB, free: 139.9 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01961/1.186, allocations: 14.31 MB / 0.6277 GB, free: 136.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/1.186, allocations: 62.72 kB / 0.6278 GB, free: 136.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=286): time 6.623e-06/1.186, allocations: 0 / 0.6278 GB, free: 136.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=336): time 0.1279/1.314, allocations: 41.87 MB / 0.6687 GB, free: 105 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.751e-05/1.314, allocations: 217.6 kB / 0.6689 GB, free: 104.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007335/1.321, allocations: 5.465 MB / 0.6742 GB, free: 99.29 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009406/1.322, allocations: 71.03 kB / 0.6743 GB, free: 99.21 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002434/1.325, allocations: 4.418 MB / 0.6786 GB, free: 94.82 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001799/1.327, allocations: 1.248 MB / 0.6798 GB, free: 93.58 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000547/1.327, allocations: 173.6 kB / 0.68 GB, free: 93.41 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0004058/1.328, allocations: 0.6793 MB / 0.6807 GB, free: 92.72 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005654/1.333, allocations: 4.581 MB / 0.6851 GB, free: 88.13 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008011/1.341, allocations: 9.567 MB / 0.6945 GB, free: 76.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008669/1.35, allocations: 6.463 MB / 0.7008 GB, free: 69.86 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001918/1.35, allocations: 48 kB / 0.7008 GB, free: 69.81 MB / 478.1 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.04115/1.391, allocations: 18.91 MB / 0.7193 GB, free: 51.12 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002485/1.392, allocations: 86.7 kB / 0.7194 GB, free: 51.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003442/1.392, allocations: 176 kB / 0.7196 GB, free: 50.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01964/1.412, allocations: 5.826 MB / 0.7252 GB, free: 45.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007194/1.419, allocations: 2.051 MB / 0.7272 GB, free: 42.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0289/1.448, allocations: 24.29 MB / 0.751 GB, free: 18.42 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008722/1.457, allocations: 0.547 MB / 0.7515 GB, free: 17.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002123/1.459, allocations: 0.5084 MB / 0.752 GB, free: 17.36 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * 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 (1057): * Single equations (assignments): 1049 * 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.006842/1.466, allocations: 3.085 MB / 0.755 GB, free: 14.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001605/1.467, allocations: 0.4936 MB / 0.7555 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02862/1.496, allocations: 12.6 MB / 0.7678 GB, free: 1.098 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/1.496, allocations: 56.61 kB / 0.7679 GB, free: 1.043 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.163e-05/1.496, allocations: 8 kB / 0.7679 GB, free: 1.035 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.301e-05/1.496, allocations: 19.95 kB / 0.7679 GB, free: 1.016 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2611/1.757, allocations: 24.31 MB / 0.7916 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-05/1.757, allocations: 5.125 kB / 0.7916 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002981/1.76, allocations: 0.5708 MB / 0.7922 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01702/1.777, allocations: 4.834 MB / 0.7969 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007179/1.778, allocations: 62.42 kB / 0.797 GB, free: 172.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02177/1.8, allocations: 19.56 MB / 0.8161 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/1.8, allocations: 3.969 kB / 0.8161 GB, free: 165.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02902/1.829, allocations: 16.98 MB / 0.8327 GB, free: 156.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/1.83, allocations: 0.5427 MB / 0.8332 GB, free: 156.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009369/1.831, allocations: 60.27 kB / 0.8332 GB, free: 156.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/1.834, allocations: 255.6 kB / 0.8335 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005865/1.834, allocations: 191.1 kB / 0.8337 GB, free: 156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002727/1.835, allocations: 83.98 kB / 0.8337 GB, free: 155.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004846/1.84, allocations: 3.393 MB / 0.8371 GB, free: 152.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.84, allocations: 2.438 kB / 0.8371 GB, free: 152.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007941/1.848, allocations: 1.709 MB / 0.8387 GB, free: 150.9 MB / 494.1 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.02949/1.877, allocations: 17.65 MB / 0.856 GB, free: 133.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.015/1.892, allocations: 10.54 MB / 0.8663 GB, free: 122.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.041e-05/1.892, allocations: 4 kB / 0.8663 GB, free: 122.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005283/1.897, allocations: 4.009 MB / 0.8702 GB, free: 118.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/1.902, allocations: 0.6287 MB / 0.8708 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1074/2.009, allocations: 64.49 MB / 0.9338 GB, free: 48.69 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0044/2.013, allocations: 4.623 MB / 0.9383 GB, free: 44.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00686/2.02, allocations: 2.982 MB / 0.9412 GB, free: 41.05 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004009/2.024, allocations: 2.917 MB / 0.944 GB, free: 38.13 MB / 494.1 MB Notification: Performance of SimCode: time 1.753e-06/2.024, allocations: 0 / 0.944 GB, free: 38.13 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3685/2.393, allocations: 135.4 MB / 1.076 GB, free: 89.52 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/2.393, allocations: 207.8 kB / 1.076 GB, free: 89.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.254/7.648, allocations: 0 / 1.076 GB, free: 89.28 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat