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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.519/1.519, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 89.92 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.392e-05, allocations: 8 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.12, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.401/0.521, allocations: 105.1 MB / 499.5 MB, free: 14.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5213, allocations: 87.95 kB / 499.5 MB, free: 14.24 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5379/1.059, allocations: 112.7 MB / 0.5979 GB, free: 96.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/1.059, allocations: 0 / 0.5979 GB, free: 96.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003478/1.06, allocations: 105 kB / 0.598 GB, free: 96.36 MB / 426.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.01545/1.075, allocations: 4.936 MB / 0.6028 GB, free: 93.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/1.075, allocations: 7.094 kB / 0.6029 GB, free: 93.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004025/1.079, allocations: 1.035 MB / 0.6039 GB, free: 93.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02694/1.106, allocations: 6.909 MB / 0.6106 GB, free: 90.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/1.123, allocations: 6.452 MB / 0.6169 GB, free: 87.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/1.123, allocations: 392.3 kB / 0.6173 GB, free: 86.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002433/1.126, allocations: 0.5185 MB / 0.6178 GB, free: 86.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03409/1.16, allocations: 12.57 MB / 0.6301 GB, free: 72.9 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000453/1.16, allocations: 55.47 kB / 0.6301 GB, free: 72.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002683/1.163, allocations: 252.4 kB / 0.6304 GB, free: 72.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00166/1.165, allocations: 1.05 MB / 0.6314 GB, free: 71.58 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02554/1.19, allocations: 10.38 MB / 0.6415 GB, free: 61.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06088/1.251, allocations: 50.19 MB / 0.6905 GB, free: 9.691 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/1.263, allocations: 4.756 MB / 0.6952 GB, free: 4.781 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002379/1.266, allocations: 1.889 MB / 0.697 GB, free: 2.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/1.279, allocations: 7.031 MB / 0.7039 GB, free: 11.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.065e-05/1.279, allocations: 59.48 kB / 0.7039 GB, free: 11.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=179): time 9.438e-06/1.279, allocations: 4 kB / 0.704 GB, free: 11.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.3632/1.642, allocations: 17.01 MB / 0.7206 GB, free: 103.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/1.642, allocations: 205.7 kB / 0.7208 GB, free: 103.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01165/1.654, allocations: 3.878 MB / 0.7245 GB, free: 102.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005909/1.655, allocations: 64.06 kB / 0.7246 GB, free: 102.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003821/1.659, allocations: 3.575 MB / 0.7281 GB, free: 100.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001549/1.66, allocations: 0.8383 MB / 0.7289 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005201/1.661, allocations: 130.5 kB / 0.729 GB, free: 100.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005322/1.661, allocations: 0.5771 MB / 0.7296 GB, free: 100 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005535/1.667, allocations: 2.116 MB / 0.7317 GB, free: 99.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008983/1.676, allocations: 5.857 MB / 0.7374 GB, free: 95.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009104/1.685, allocations: 3.512 MB / 0.7408 GB, free: 95.13 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000273/1.685, allocations: 37.94 kB / 0.7409 GB, free: 95.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02679/1.712, allocations: 8.68 MB / 0.7493 GB, free: 93.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002038/1.712, allocations: 69.77 kB / 0.7494 GB, free: 93.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002398/1.713, allocations: 131.2 kB / 0.7495 GB, free: 93.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004931/1.718, allocations: 1.032 MB / 0.7505 GB, free: 93.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007151/1.725, allocations: 1.422 MB / 0.7519 GB, free: 93.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0128/1.738, allocations: 6.875 MB / 0.7586 GB, free: 89.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008187/1.746, allocations: 334.2 kB / 0.759 GB, free: 89.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001696/1.748, allocations: 382.1 kB / 0.7593 GB, free: 89.32 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 () * 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.001646/1.749, allocations: 0.5936 MB / 0.7599 GB, free: 88.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00133/1.751, allocations: 408.8 kB / 0.7603 GB, free: 88.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009967/1.76, allocations: 3.611 MB / 0.7638 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.692e-05/1.761, allocations: 20.88 kB / 0.7638 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.296e-05/1.761, allocations: 12.22 kB / 0.7638 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.966e-05/1.761, allocations: 10.28 kB / 0.7639 GB, free: 87.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02672/1.787, allocations: 9.829 MB / 0.7735 GB, free: 83.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.388e-05/1.787, allocations: 3.812 kB / 0.7735 GB, free: 83.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002461/1.79, allocations: 363.3 kB / 0.7738 GB, free: 83.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003754/1.794, allocations: 0.7934 MB / 0.7746 GB, free: 83.17 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004751/1.794, allocations: 42.27 kB / 0.7746 GB, free: 83.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01064/1.805, allocations: 5.594 MB / 0.7801 GB, free: 80.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/1.805, allocations: 10.72 kB / 0.7801 GB, free: 80.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/1.819, allocations: 6.943 MB / 0.7869 GB, free: 76.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/1.821, allocations: 458.9 kB / 0.7873 GB, free: 76.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007765/1.821, allocations: 45.55 kB / 0.7874 GB, free: 76.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002367/1.824, allocations: 98.28 kB / 0.7874 GB, free: 76.01 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004352/1.824, allocations: 143.8 kB / 0.7876 GB, free: 75.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002167/1.824, allocations: 65.53 kB / 0.7876 GB, free: 75.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005846/1.83, allocations: 2.721 MB / 0.7903 GB, free: 75 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.83, allocations: 0 / 0.7903 GB, free: 75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009252/1.84, allocations: 1.177 MB / 0.7915 GB, free: 74.09 MB / 442.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 () * 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.01358/1.853, allocations: 8.912 MB / 0.8002 GB, free: 65.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01173/1.865, allocations: 5.326 MB / 0.8054 GB, free: 60.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/1.865, allocations: 0 / 0.8054 GB, free: 60.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003725/1.869, allocations: 1.768 MB / 0.8071 GB, free: 59.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005335/1.874, allocations: 0.5214 MB / 0.8076 GB, free: 58.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03724/1.911, allocations: 10.68 MB / 0.818 GB, free: 49.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008236/1.92, allocations: 3.98 MB / 0.8219 GB, free: 46.46 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.009513/1.929, allocations: 1.943 MB / 0.8238 GB, free: 45.22 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006631/1.936, allocations: 2.312 MB / 0.8261 GB, free: 43.08 MB / 442.7 MB Notification: Performance of SimCode: time 2.365e-06/1.936, allocations: 0 / 0.8261 GB, free: 43.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4244/2.36, allocations: 90.66 MB / 0.9146 GB, free: 97.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/2.361, allocations: 197 kB / 0.9148 GB, free: 97.07 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.811/7.171, allocations: 0 / 0.9148 GB, free: 97.07 MB / 458.7 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)