Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001636/0.001636, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.197/2.197, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001167/0.001166, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.009e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4466/0.5526, allocations: 103.3 MB / 472.5 MB, free: 6.148 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.553, allocations: 91.38 kB / 472.6 MB, free: 6.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7542/1.307, allocations: 111.3 MB / 0.5702 GB, free: 92.01 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.307, allocations: 7.938 kB / 0.5702 GB, free: 92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000396/1.308, allocations: 107.3 kB / 0.5703 GB, free: 92 MB / 410.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.0205/1.328, allocations: 4.928 MB / 0.5752 GB, free: 89.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.611e-05/1.328, allocations: 12.95 kB / 0.5752 GB, free: 89.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004902/1.333, allocations: 1.035 MB / 0.5762 GB, free: 89.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05024/1.384, allocations: 6.904 MB / 0.5829 GB, free: 89.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02574/1.409, allocations: 6.782 MB / 0.5895 GB, free: 86.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005465/1.41, allocations: 394 kB / 0.5899 GB, free: 86.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002985/1.413, allocations: 0.5124 MB / 0.5904 GB, free: 86.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04103/1.454, allocations: 12.57 MB / 0.6027 GB, free: 78.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004025/1.454, allocations: 63.45 kB / 0.6027 GB, free: 78.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/1.457, allocations: 243.7 kB / 0.603 GB, free: 77.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002312/1.459, allocations: 1.05 MB / 0.604 GB, free: 76.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03403/1.493, allocations: 10.39 MB / 0.6142 GB, free: 66.54 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07926/1.573, allocations: 50.25 MB / 0.6632 GB, free: 15.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02114/1.594, allocations: 4.761 MB / 0.6679 GB, free: 10.15 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003837/1.598, allocations: 1.878 MB / 0.6697 GB, free: 8.262 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01736/1.615, allocations: 7.048 MB / 0.6766 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.979e-05/1.615, allocations: 55.5 kB / 0.6766 GB, free: 0.918 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 6.222e-06/1.615, allocations: 0 / 0.6766 GB, free: 0.918 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.4141/2.03, allocations: 17.13 MB / 0.6934 GB, free: 100.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/2.03, allocations: 204.6 kB / 0.6936 GB, free: 100.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01173/2.041, allocations: 3.913 MB / 0.6974 GB, free: 99.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005706/2.042, allocations: 61.14 kB / 0.6974 GB, free: 99.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003755/2.046, allocations: 3.451 MB / 0.7008 GB, free: 98.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001453/2.047, allocations: 0.8372 MB / 0.7016 GB, free: 98.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007651/2.048, allocations: 128.4 kB / 0.7018 GB, free: 98.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004761/2.049, allocations: 0.5807 MB / 0.7023 GB, free: 98.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006187/2.055, allocations: 2.117 MB / 0.7044 GB, free: 98.02 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009592/2.064, allocations: 5.856 MB / 0.7101 GB, free: 93.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008957/2.074, allocations: 3.522 MB / 0.7135 GB, free: 93.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000262/2.074, allocations: 41.22 kB / 0.7136 GB, free: 93.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02719/2.101, allocations: 8.532 MB / 0.7219 GB, free: 91.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001483/2.101, allocations: 61.59 kB / 0.722 GB, free: 91.83 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002016/2.101, allocations: 134.2 kB / 0.7221 GB, free: 91.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006053/2.108, allocations: 1.032 MB / 0.7231 GB, free: 91.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00917/2.117, allocations: 1.427 MB / 0.7245 GB, free: 91.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/2.132, allocations: 6.874 MB / 0.7312 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007588/2.14, allocations: 326.7 kB / 0.7315 GB, free: 87.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001605/2.141, allocations: 390 kB / 0.7319 GB, free: 87.66 MB / 426.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.001476/2.143, allocations: 0.5965 MB / 0.7325 GB, free: 87.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/2.144, allocations: 410.2 kB / 0.7329 GB, free: 86.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/2.156, allocations: 3.607 MB / 0.7364 GB, free: 85.59 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.421e-05/2.156, allocations: 29.69 kB / 0.7364 GB, free: 85.58 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/2.156, allocations: 14.59 kB / 0.7364 GB, free: 85.58 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.973e-05/2.156, allocations: 9.703 kB / 0.7364 GB, free: 85.58 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03072/2.187, allocations: 9.822 MB / 0.746 GB, free: 81.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.904e-05/2.187, allocations: 3.25 kB / 0.746 GB, free: 81.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003357/2.19, allocations: 364.8 kB / 0.7464 GB, free: 81.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005062/2.195, allocations: 0.7899 MB / 0.7472 GB, free: 81.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005416/2.196, allocations: 49.8 kB / 0.7472 GB, free: 81.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01227/2.208, allocations: 5.596 MB / 0.7527 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/2.208, allocations: 10.47 kB / 0.7527 GB, free: 78.44 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01748/2.226, allocations: 6.946 MB / 0.7595 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002992/2.229, allocations: 0.7145 MB / 0.7602 GB, free: 74.31 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001377/2.23, allocations: 38.66 kB / 0.7602 GB, free: 74.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003867/2.234, allocations: 99.16 kB / 0.7603 GB, free: 74.27 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007797/2.235, allocations: 153.7 kB / 0.7604 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002299/2.235, allocations: 65.83 kB / 0.7605 GB, free: 74.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007543/2.243, allocations: 2.746 MB / 0.7632 GB, free: 73.24 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.12e-07/2.243, allocations: 0 / 0.7632 GB, free: 73.24 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00861/2.251, allocations: 1.182 MB / 0.7643 GB, free: 73.1 MB / 426.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.01791/2.269, allocations: 8.901 MB / 0.773 GB, free: 66.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0125/2.282, allocations: 5.319 MB / 0.7782 GB, free: 61.36 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/2.282, allocations: 7.062 kB / 0.7782 GB, free: 61.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004101/2.286, allocations: 1.768 MB / 0.78 GB, free: 59.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004739/2.291, allocations: 0.525 MB / 0.7805 GB, free: 59.27 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03781/2.329, allocations: 11.3 MB / 0.7915 GB, free: 49.38 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008464/2.337, allocations: 3.995 MB / 0.7954 GB, free: 46.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005344/2.343, allocations: 2.359 MB / 0.7977 GB, free: 44.19 MB / 426.7 MB Notification: Performance of SimCode: time 1.573e-06/2.343, allocations: 0 / 0.7977 GB, free: 44.19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.062/7.405, allocations: 118.2 MB / 0.9131 GB, free: 84.04 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)