Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008896/0.0008896, allocations: 86.81 kB / 16.31 MB, free: 5.676 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.001075/0.001075, allocations: 182.2 kB / 17.21 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.373/1.373, allocations: 223.2 MB / 241.2 MB, free: 14.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002718, allocations: 8 kB / 300.9 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.114, allocations: 50.41 MB / 351.3 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.305/0.419, allocations: 68.34 MB / 419.7 MB, free: 100 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04272/0.4618, allocations: 14.28 MB / 434 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02319/0.4851, allocations: 335.1 kB / 434.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01335/0.4985, allocations: 3.561 MB / 437.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03639/0.5349, allocations: 10.46 MB / 448.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006211/0.5412, allocations: 0.9987 MB / 449.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1208/0.662, allocations: 91.5 MB / 0.5281 GB, free: 6.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01291/0.6749, allocations: 6.599 MB / 0.5346 GB, free: 92 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3109/0.986, allocations: 2 MB / 0.5365 GB, free: 91.65 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008126/0.9941, allocations: 3.148 MB / 0.5396 GB, free: 91.65 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002306/0.9965, allocations: 219.7 kB / 0.5398 GB, free: 91.65 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005246/1.002, allocations: 1.104 MB / 0.5409 GB, free: 91.65 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007564/1.009, allocations: 2.605 MB / 0.5434 GB, free: 91.65 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004099/1.013, allocations: 1.221 MB / 0.5446 GB, free: 91.62 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01529/1.029, allocations: 8.12 MB / 0.5526 GB, free: 91.1 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/1.029, allocations: 0 / 0.5526 GB, free: 91.1 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.876e-06/1.029, allocations: 0 / 0.5526 GB, free: 91.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004631/1.029, allocations: 0 / 0.5526 GB, free: 91.1 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.01955/1.049, allocations: 6.616 MB / 0.559 GB, free: 87.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/1.049, allocations: 11.16 kB / 0.559 GB, free: 87.94 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004558/1.053, allocations: 1.081 MB / 0.5601 GB, free: 87.64 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04419/1.098, allocations: 8.506 MB / 0.5684 GB, free: 84.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/1.11, allocations: 5.63 MB / 0.5739 GB, free: 81.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003557/1.11, allocations: 339.4 kB / 0.5742 GB, free: 81.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002113/1.112, allocations: 474.5 kB / 0.5747 GB, free: 81.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02794/1.14, allocations: 14.46 MB / 0.5888 GB, free: 69.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005456/1.141, allocations: 77.48 kB / 0.5889 GB, free: 69.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002655/1.144, allocations: 212.3 kB / 0.5891 GB, free: 69.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00508/1.149, allocations: 2.835 MB / 0.5918 GB, free: 67.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02762/1.176, allocations: 12.98 MB / 0.6045 GB, free: 58.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07567/1.252, allocations: 58.25 MB / 0.6614 GB, free: 5.219 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01779/1.27, allocations: 7.682 MB / 0.6689 GB, free: 13.41 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007182/1.277, allocations: 4.998 MB / 0.6738 GB, free: 8.402 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02814/1.305, allocations: 12.68 MB / 0.6862 GB, free: 11.69 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.495e-05/1.305, allocations: 71.8 kB / 0.6862 GB, free: 11.61 MB / 478.1 MB Notification: Performance of pre-optimization done (n=326): time 8.276e-06/1.305, allocations: 0 / 0.6862 GB, free: 11.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=572): time 1.904/3.21, allocations: 406.9 MB / 1.084 GB, free: 32.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000161/3.21, allocations: 269.6 kB / 1.084 GB, free: 32.47 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01102/3.221, allocations: 5.461 MB / 1.089 GB, free: 27.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002056/3.223, allocations: 117.7 kB / 1.089 GB, free: 26.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2206/3.443, allocations: 4.003 MB / 1.093 GB, free: 174.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004027/3.448, allocations: 2.003 MB / 1.095 GB, free: 173.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001658/3.449, allocations: 185.8 kB / 1.095 GB, free: 173.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0006766/3.45, allocations: 0.6988 MB / 1.096 GB, free: 173 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02048/3.47, allocations: 10.84 MB / 1.107 GB, free: 170.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01866/3.489, allocations: 14.96 MB / 1.121 GB, free: 160.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01673/3.506, allocations: 12.67 MB / 1.134 GB, free: 155.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001248/3.506, allocations: 42.03 kB / 1.134 GB, free: 155.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.305/3.811, allocations: 140.3 MB / 1.271 GB, free: 32.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.278e-05/3.811, allocations: 64 kB / 1.271 GB, free: 32.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/3.811, allocations: 140 kB / 1.271 GB, free: 31.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3389/4.15, allocations: 34.64 MB / 1.305 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004936/4.155, allocations: 1.477 MB / 1.306 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5323/4.688, allocations: 189.9 MB / 1.492 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01373/4.701, allocations: 1.707 MB / 1.493 GB, free: 141.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00344/4.705, allocations: 0.5255 MB / 1.494 GB, free: 141.1 MB / 494.1 MB 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.01047/4.715, allocations: 3.09 MB / 1.497 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003045/4.718, allocations: 0.5784 MB / 1.497 GB, free: 139.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3072/5.026, allocations: 136.4 MB / 1.631 GB, free: 35.89 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001356/5.026, allocations: 64.81 kB / 1.631 GB, free: 35.83 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002861/5.026, allocations: 60 kB / 1.631 GB, free: 35.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001813/5.026, allocations: 27.38 kB / 1.631 GB, free: 35.75 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6326/5.659, allocations: 206.1 MB / 1.832 GB, free: 5.711 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.617e-05/5.659, allocations: 8 kB / 1.832 GB, free: 5.703 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/5.66, allocations: 331.4 kB / 1.832 GB, free: 5.379 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3157/5.976, allocations: 33.75 MB / 1.865 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002042/5.978, allocations: 101.8 kB / 1.865 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4917/6.47, allocations: 173 MB / 2.034 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.347e-06/6.47, allocations: 11.69 kB / 2.034 GB, free: 141.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5483/7.018, allocations: 152.2 MB / 2.183 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00175/7.02, allocations: 0.6313 MB / 2.184 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002847/7.023, allocations: 100.5 kB / 2.184 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01028/7.033, allocations: 1.474 MB / 2.185 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004157/7.037, allocations: 0.4914 MB / 2.186 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001176/7.039, allocations: 144.5 kB / 2.186 GB, free: 138.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006983/7.046, allocations: 3.49 MB / 2.189 GB, free: 138.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.21e-07/7.046, allocations: 0 / 2.189 GB, free: 138.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01683/7.063, allocations: 3.798 MB / 2.193 GB, free: 138.1 MB / 494.1 MB 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.5961/7.659, allocations: 152.7 MB / 2.342 GB, free: 145.6 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.06156/7.72, allocations: 33.34 MB / 2.374 GB, free: 144.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/7.72, allocations: 0 / 2.374 GB, free: 144.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.03842/7.759, allocations: 20.45 MB / 2.394 GB, free: 138.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007816/7.767, allocations: 0.8064 MB / 2.395 GB, free: 138.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6643/8.431, allocations: 213.2 MB / 2.603 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007074/8.438, allocations: 5.1 MB / 2.608 GB, free: 111.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004918/8.443, allocations: 2.066 MB / 2.61 GB, free: 109.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004283/8.447, allocations: 3.028 MB / 2.613 GB, free: 108.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/8.447, allocations: 0 / 2.613 GB, free: 108.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8673/9.315, allocations: 323.7 MB / 2.929 GB, free: 114.8 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/9.315, allocations: 222 kB / 2.93 GB, free: 114.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.953/17.27, allocations: 2.812 kB / 2.93 GB, free: 114.5 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat