Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009943/0.0009944, allocations: 94.17 kB / 16.3 MB, free: 5.656 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.001196/0.001196, allocations: 182.5 kB / 17.2 MB, free: 5.59 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.379/1.379, allocations: 223.2 MB / 241.1 MB, free: 284 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002811/0.0002813, allocations: 9.875 kB / 300.8 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1078, allocations: 50.41 MB / 351.2 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.2542/0.362, allocations: 47.43 MB / 398.7 MB, free: 15.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03061/0.3927, allocations: 11.77 MB / 410.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01346/0.4062, allocations: 242.9 kB / 410.7 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008607/0.4148, allocations: 2.348 MB / 413 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02278/0.4377, allocations: 6.786 MB / 419.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004411/0.4421, allocations: 0.9016 MB / 420.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0809/0.523, allocations: 48.52 MB / 469.2 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01366/0.5367, allocations: 6.527 MB / 475.7 MB, free: 7.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003156/0.5399, allocations: 1.335 MB / 477.1 MB, free: 6.211 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.5432, allocations: 1.76 MB / 478.8 MB, free: 4.445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.5442, allocations: 184 kB / 479 MB, free: 4.266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003058/0.5473, allocations: 1.159 MB / 480.2 MB, free: 3.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003156/0.5505, allocations: 2.03 MB / 482.2 MB, free: 1.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002264/0.5528, allocations: 1.045 MB / 483.3 MB, free: 16 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009803/0.5626, allocations: 7.532 MB / 490.8 MB, free: 8.465 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.5626, allocations: 0 / 490.8 MB, free: 8.465 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5627, allocations: 0 / 490.8 MB, free: 8.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003533/0.563, allocations: 4 kB / 490.8 MB, free: 8.461 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01367/0.5767, allocations: 5.206 MB / 496 MB, free: 3.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.5768, allocations: 8.031 kB / 496 MB, free: 3.172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002903/0.5797, allocations: 0.9245 MB / 496.9 MB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04293/0.6226, allocations: 7.947 MB / 0.493 GB, free: 10.27 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01011/0.6328, allocations: 3.91 MB / 0.4969 GB, free: 6.301 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/0.6332, allocations: 311.9 kB / 0.4972 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001794/0.635, allocations: 439.6 kB / 0.4976 GB, free: 5.562 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02413/0.6591, allocations: 12.48 MB / 0.5098 GB, free: 8.348 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001461/0.6593, allocations: 47.5 kB / 0.5098 GB, free: 8.301 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005055/0.6598, allocations: 187.9 kB / 0.51 GB, free: 8.117 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003108/0.6629, allocations: 2.039 MB / 0.512 GB, free: 6.074 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02177/0.6847, allocations: 10.52 MB / 0.5223 GB, free: 11.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2807/0.9654, allocations: 44.28 MB / 0.5655 GB, free: 122.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01206/0.9775, allocations: 4.857 MB / 0.5702 GB, free: 120.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.9898, allocations: 7.095 MB / 0.5772 GB, free: 116.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.9899, allocations: 47.44 kB / 0.5772 GB, free: 116.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=179): time 5.741e-06/0.9899, allocations: 2.875 kB / 0.5772 GB, free: 116.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.05929/1.049, allocations: 19.48 MB / 0.5962 GB, free: 103.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/1.049, allocations: 201.9 kB / 0.5964 GB, free: 102.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005292/1.055, allocations: 4.707 MB / 0.601 GB, free: 98.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003964/1.055, allocations: 58.41 kB / 0.6011 GB, free: 98.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001573/1.057, allocations: 3.559 MB / 0.6046 GB, free: 94.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006831/1.057, allocations: 0.8414 MB / 0.6054 GB, free: 93.75 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002216/1.057, allocations: 128 kB / 0.6055 GB, free: 93.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002607/1.058, allocations: 0.5746 MB / 0.6061 GB, free: 93.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/1.061, allocations: 2.199 MB / 0.6082 GB, free: 90.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004244/1.065, allocations: 5.925 MB / 0.614 GB, free: 83.06 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004486/1.069, allocations: 3.553 MB / 0.6175 GB, free: 79.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.39e-05/1.069, allocations: 44 kB / 0.6175 GB, free: 79.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01441/1.084, allocations: 8.985 MB / 0.6263 GB, free: 70.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.429e-05/1.084, allocations: 60 kB / 0.6263 GB, free: 70.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/1.084, allocations: 132.9 kB / 0.6265 GB, free: 70.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/1.087, allocations: 1.222 MB / 0.6277 GB, free: 69.05 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004355/1.092, allocations: 1.415 MB / 0.629 GB, free: 67.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009573/1.101, allocations: 7.752 MB / 0.6366 GB, free: 59.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005328/1.107, allocations: 347.4 kB / 0.6369 GB, free: 59.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00108/1.108, allocations: 380 kB / 0.6373 GB, free: 59.05 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * 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.004113/1.112, allocations: 2.478 MB / 0.6397 GB, free: 56.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008493/1.113, allocations: 406.8 kB / 0.6401 GB, free: 56.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006787/1.12, allocations: 3.881 MB / 0.6439 GB, free: 52.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.021e-05/1.12, allocations: 24 kB / 0.6439 GB, free: 52.24 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/1.12, allocations: 8 kB / 0.6439 GB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/1.12, allocations: 7.969 kB / 0.6439 GB, free: 52.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01972/1.139, allocations: 10.19 MB / 0.6539 GB, free: 41.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.433e-05/1.139, allocations: 8 kB / 0.6539 GB, free: 41.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/1.141, allocations: 344 kB / 0.6542 GB, free: 41.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00302/1.144, allocations: 0.9917 MB / 0.6552 GB, free: 40.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/1.144, allocations: 44.62 kB / 0.6552 GB, free: 40.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008011/1.152, allocations: 6.421 MB / 0.6615 GB, free: 33.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/1.152, allocations: 11.94 kB / 0.6615 GB, free: 33.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/1.163, allocations: 7.225 MB / 0.6686 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001327/1.164, allocations: 467.2 kB / 0.669 GB, free: 25.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001025/1.165, allocations: 49.2 kB / 0.6691 GB, free: 25.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/1.167, allocations: 107.9 kB / 0.6692 GB, free: 25.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003289/1.167, allocations: 145 kB / 0.6693 GB, free: 25.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001663/1.168, allocations: 64.92 kB / 0.6694 GB, free: 25.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004617/1.172, allocations: 2.996 MB / 0.6723 GB, free: 22.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.022e-06/1.172, allocations: 4 kB / 0.6723 GB, free: 22.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006879/1.179, allocations: 1.197 MB / 0.6735 GB, free: 21.45 MB / 446.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 (173): * Single equations (assignments): 169 * 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.0113/1.191, allocations: 9.077 MB / 0.6823 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007979/1.199, allocations: 5.477 MB / 0.6877 GB, free: 6.746 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.662e-05/1.199, allocations: 0 / 0.6877 GB, free: 6.746 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002513/1.201, allocations: 1.823 MB / 0.6895 GB, free: 4.914 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003149/1.204, allocations: 0.5139 MB / 0.69 GB, free: 4.398 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2796/1.484, allocations: 113.2 MB / 0.8005 GB, free: 61.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006102/1.49, allocations: 3.971 MB / 0.8043 GB, free: 60.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005073/1.495, allocations: 1.941 MB / 0.8062 GB, free: 60.64 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002409/1.498, allocations: 2.297 MB / 0.8085 GB, free: 59.53 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/1.498, allocations: 0 / 0.8085 GB, free: 59.53 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3263/1.824, allocations: 90.65 MB / 0.897 GB, free: 141.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/1.824, allocations: 207.9 kB / 0.8972 GB, free: 141.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.432/6.256, allocations: 3.938 kB / 0.8972 GB, free: 141.5 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat does not exist to compare? outputFormat=mat