Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.002078/0.002101, allocations: 184 kB / 16.4 MB, free: 5.754 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.165/2.165, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001189/0.001189, allocations: 99.38 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004115/0.0004117, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3337, allocations: 47.57 MB / 374.6 MB, free: 45.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.09241/0.4261, allocations: 69.65 MB / 444.3 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04962/0.4758, allocations: 16.59 MB / 460.9 MB, free: 10.4 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01565/0.4915, allocations: 367 kB / 461.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01326/0.5048, allocations: 3.538 MB / 464.8 MB, free: 6.484 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0614/0.5663, allocations: 9.926 MB / 474.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007787/0.5741, allocations: 1.303 MB / 476 MB, free: 11.23 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.4367/1.011, allocations: 51.93 MB / 0.5156 GB, free: 28.69 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01892/1.03, allocations: 10.17 MB / 0.5255 GB, free: 25.9 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004608/1.034, allocations: 1.981 MB / 0.5274 GB, free: 24.63 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004938/1.039, allocations: 2.513 MB / 0.5299 GB, free: 22.87 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/1.041, allocations: 248 kB / 0.5301 GB, free: 22.62 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004572/1.046, allocations: 1.266 MB / 0.5313 GB, free: 21.59 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004661/1.05, allocations: 2.98 MB / 0.5343 GB, free: 19.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002995/1.054, allocations: 1.465 MB / 0.5357 GB, free: 18.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/1.069, allocations: 11 MB / 0.5464 GB, free: 9.359 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/1.069, allocations: 0 / 0.5464 GB, free: 9.359 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.697e-06/1.069, allocations: 0 / 0.5464 GB, free: 9.359 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004865/1.069, allocations: 0 / 0.5464 GB, free: 9.359 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03497/1.104, allocations: 8.222 MB / 0.5545 GB, free: 1.875 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/1.104, allocations: 8.031 kB / 0.5545 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004168/1.109, allocations: 1.135 MB / 0.5556 GB, free: 1.199 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.68/1.789, allocations: 27.29 MB / 0.5822 GB, free: 7.199 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02753/1.816, allocations: 7.561 MB / 0.5896 GB, free: 1.797 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005475/1.817, allocations: 436.8 kB / 0.59 GB, free: 1.559 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003136/1.82, allocations: 0.5791 MB / 0.5906 GB, free: 1.176 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05412/1.874, allocations: 17.11 MB / 0.6073 GB, free: 4.023 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004502/1.875, allocations: 85.14 kB / 0.6074 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002238/1.877, allocations: 265.5 kB / 0.6076 GB, free: 3.902 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00842/1.885, allocations: 2.652 MB / 0.6102 GB, free: 1.715 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05132/1.937, allocations: 14.67 MB / 0.6245 GB, free: 7.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7994/2.736, allocations: 64.36 MB / 0.6874 GB, free: 67.48 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04206/2.778, allocations: 8.85 MB / 0.696 GB, free: 66.82 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04469/2.823, allocations: 18.3 MB / 0.7139 GB, free: 64.45 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.797e-05/2.823, allocations: 64.38 kB / 0.714 GB, free: 64.41 MB / 474.8 MB Notification: Performance of pre-optimization done (n=281): time 7.435e-06/2.823, allocations: 3.156 kB / 0.714 GB, free: 64.41 MB / 474.8 MB Notification: Performance of matching and sorting (n=374): time 0.4649/3.288, allocations: 74.98 MB / 0.7872 GB, free: 16.98 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/3.288, allocations: 379.4 kB / 0.7876 GB, free: 16.53 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01415/3.302, allocations: 6.95 MB / 0.7943 GB, free: 11.43 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001192/3.304, allocations: 85.09 kB / 0.7944 GB, free: 11.38 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003933/3.308, allocations: 4.614 MB / 0.7989 GB, free: 7.816 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002433/3.31, allocations: 1.366 MB / 0.8003 GB, free: 6.668 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/3.312, allocations: 177.8 kB / 0.8004 GB, free: 6.633 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0006771/3.312, allocations: 0.6844 MB / 0.8011 GB, free: 6.078 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01327/3.326, allocations: 5.625 MB / 0.8066 GB, free: 2.531 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01898/3.345, allocations: 10.55 MB / 0.8169 GB, free: 7.625 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01937/3.364, allocations: 7.525 MB / 0.8242 GB, free: 248 kB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002187/3.364, allocations: 52 kB / 0.8243 GB, free: 196 kB / 490.8 MB Notification: Performance of matching and sorting (n=1157) (initialization): time 0.1106/3.475, allocations: 21.66 MB / 0.8454 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002179/3.475, allocations: 80.19 kB / 0.8455 GB, free: 11.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004217/3.476, allocations: 173.9 kB / 0.8457 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04745/3.523, allocations: 6.926 MB / 0.8524 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01401/3.537, allocations: 2.069 MB / 0.8545 GB, free: 2.484 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.377/3.914, allocations: 35.21 MB / 0.8889 GB, free: 201.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01268/3.927, allocations: 0.723 MB / 0.8896 GB, free: 201.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002112/3.929, allocations: 0.5091 MB / 0.8901 GB, free: 201 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 779 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1015): * Single equations (assignments): 1008 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.009727/3.939, allocations: 3.428 MB / 0.8934 GB, free: 199.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002618/3.941, allocations: 0.5869 MB / 0.894 GB, free: 199.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0588/4, allocations: 16.09 MB / 0.9097 GB, free: 191 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001223/4.001, allocations: 59.2 kB / 0.9098 GB, free: 190.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.654e-05/4.001, allocations: 16 kB / 0.9098 GB, free: 190.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.132e-05/4.001, allocations: 19.75 kB / 0.9098 GB, free: 190.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09165/4.092, allocations: 31.48 MB / 0.9405 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.727e-05/4.092, allocations: 4 kB / 0.9405 GB, free: 159.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006024/4.099, allocations: 0.6075 MB / 0.9411 GB, free: 158.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03544/4.134, allocations: 6.563 MB / 0.9475 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001243/4.135, allocations: 63.98 kB / 0.9476 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07105/4.206, allocations: 33.48 MB / 0.9803 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/4.206, allocations: 6.719 kB / 0.9803 GB, free: 118.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06706/4.274, allocations: 23.95 MB / 1.004 GB, free: 94.55 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005984/4.28, allocations: 1.653 MB / 1.005 GB, free: 92.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002434/4.282, allocations: 61.17 kB / 1.005 GB, free: 92.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008402/4.29, allocations: 435.3 kB / 1.006 GB, free: 92.39 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002304/4.293, allocations: 252.6 kB / 1.006 GB, free: 92.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007937/4.294, allocations: 90.95 kB / 1.006 GB, free: 92.05 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01049/4.304, allocations: 4.518 MB / 1.011 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.41e-07/4.304, allocations: 3.938 kB / 1.011 GB, free: 87.55 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0144/4.319, allocations: 2.223 MB / 1.013 GB, free: 85.34 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.07063/4.389, allocations: 25.19 MB / 1.037 GB, free: 60.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03464/4.424, allocations: 14.19 MB / 1.051 GB, free: 45.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/4.424, allocations: 0 / 1.051 GB, free: 45.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01699/4.441, allocations: 6.541 MB / 1.058 GB, free: 39.32 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008276/4.449, allocations: 0.8448 MB / 1.058 GB, free: 38.49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5547/5.004, allocations: 200.8 MB / 1.254 GB, free: 59.18 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01048/5.015, allocations: 5.438 MB / 1.26 GB, free: 53.71 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008873/5.024, allocations: 3.475 MB / 1.263 GB, free: 50.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.533e-06/5.024, allocations: 0 / 1.263 GB, free: 50.24 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.861/11.88, allocations: 243.5 MB / 1.501 GB, free: 191.1 MB / 0.5105 GB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)