Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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.002145/0.00215, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.37/2.37, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 94.47 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.254e-05/2.252e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3353, allocations: 47.55 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1544/0.4898, allocations: 93.6 MB / 456 MB, free: 8.676 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003392/0.4902, allocations: 88.8 kB / 456.1 MB, free: 8.59 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7609/1.251, allocations: 120.9 MB / 0.5635 GB, free: 78.09 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.564e-06/1.251, allocations: 0 / 0.5635 GB, free: 78.09 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004502/1.252, allocations: 123.2 kB / 0.5636 GB, free: 77.97 MB / 395.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.028/1.28, allocations: 6.526 MB / 0.57 GB, free: 71.39 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/1.28, allocations: 8.031 kB / 0.57 GB, free: 71.38 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06593/1.346, allocations: 9.43 MB / 0.5792 GB, free: 61.93 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03093/1.377, allocations: 8.559 MB / 0.5876 GB, free: 53.38 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004387/1.377, allocations: 187.9 kB / 0.5877 GB, free: 53.19 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003375/1.381, allocations: 347.8 kB / 0.5881 GB, free: 52.85 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02202/1.403, allocations: 8.87 MB / 0.5967 GB, free: 43.98 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03524/1.438, allocations: 13.02 MB / 0.6094 GB, free: 29.79 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005113/1.438, allocations: 87.2 kB / 0.6095 GB, free: 29.71 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002901/1.441, allocations: 39.94 kB / 0.6096 GB, free: 29.67 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003149/1.445, allocations: 1.439 MB / 0.611 GB, free: 28.23 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4324/1.877, allocations: 62.97 MB / 0.6725 GB, free: 53.5 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01436/1.891, allocations: 7.01 MB / 0.6793 GB, free: 52.83 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01034/1.902, allocations: 5.038 MB / 0.6842 GB, free: 52.78 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00131/1.903, allocations: 0.5747 MB / 0.6848 GB, free: 52.31 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.418e-05/1.903, allocations: 73.08 kB / 0.6848 GB, free: 52.27 MB / 411.1 MB Notification: Performance of pre-optimization done (n=346): time 8.396e-06/1.903, allocations: 0 / 0.6848 GB, free: 52.27 MB / 411.1 MB Notification: Performance of matching and sorting (n=610): time 0.3189/2.222, allocations: 75.32 MB / 0.7584 GB, free: 15.35 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/2.222, allocations: 269.8 kB / 0.7587 GB, free: 15.04 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/2.232, allocations: 3.998 MB / 0.7626 GB, free: 11.61 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002224/2.235, allocations: 27.95 kB / 0.7626 GB, free: 11.58 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003621/2.238, allocations: 3.919 MB / 0.7664 GB, free: 8.031 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00417/2.243, allocations: 2.055 MB / 0.7684 GB, free: 6.16 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002671/2.245, allocations: 0 / 0.7684 GB, free: 6.16 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0007915/2.246, allocations: 0.7259 MB / 0.7691 GB, free: 5.543 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01906/2.265, allocations: 8.436 MB / 0.7774 GB, free: 13.11 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02673/2.292, allocations: 12.62 MB / 0.7897 GB, free: 14.64 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02623/2.318, allocations: 10.41 MB / 0.7999 GB, free: 4.336 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001977/2.319, allocations: 40 kB / 0.7999 GB, free: 4.297 MB / 443.1 MB Notification: Performance of matching and sorting (n=1266) (initialization): time 0.4931/2.812, allocations: 38.82 MB / 0.8378 GB, free: 123.8 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001131/2.812, allocations: 67.97 kB / 0.8379 GB, free: 123.8 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/2.812, allocations: 143.1 kB / 0.838 GB, free: 123.8 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1216/2.934, allocations: 21.33 MB / 0.8588 GB, free: 123.7 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009279/2.943, allocations: 1.494 MB / 0.8603 GB, free: 123.7 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.401/3.344, allocations: 137 MB / 0.9941 GB, free: 33.44 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02717/3.371, allocations: 0.5569 MB / 0.9947 GB, free: 32.89 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004809/3.376, allocations: 0.5427 MB / 0.9952 GB, free: 32.35 MB / 475.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (805): * Single equations (assignments): 798 * 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 {(22,33.9%) 176,(17,45.3%) 115,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.007731/3.384, allocations: 493.8 kB / 0.9957 GB, free: 32.07 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4633/3.847, allocations: 34.62 MB / 1.029 GB, free: 127.5 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00355/3.851, allocations: 0.5518 MB / 1.03 GB, free: 127.5 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1424/3.993, allocations: 35.47 MB / 1.065 GB, free: 122.4 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001488/3.994, allocations: 58.61 kB / 1.065 GB, free: 122.4 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001779/3.994, allocations: 67.22 kB / 1.065 GB, free: 122.4 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001668/3.994, allocations: 27.89 kB / 1.065 GB, free: 122.4 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1909/4.185, allocations: 55.75 MB / 1.119 GB, free: 77.3 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.035e-05/4.185, allocations: 0 / 1.119 GB, free: 77.3 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002648/4.188, allocations: 287.6 kB / 1.12 GB, free: 77.02 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1049/4.293, allocations: 20.56 MB / 1.14 GB, free: 56.55 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002096/4.295, allocations: 16.19 kB / 1.14 GB, free: 56.54 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6257/4.921, allocations: 124.6 MB / 1.261 GB, free: 93.81 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/4.921, allocations: 4 kB / 1.261 GB, free: 93.81 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1601/5.081, allocations: 48 MB / 1.308 GB, free: 53.57 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009502/5.09, allocations: 2.352 MB / 1.311 GB, free: 51.2 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003251/5.094, allocations: 4.812 kB / 1.311 GB, free: 51.2 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01292/5.106, allocations: 417.9 kB / 1.311 GB, free: 50.79 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005019/5.112, allocations: 0.5062 MB / 1.311 GB, free: 50.29 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002005/5.114, allocations: 147.9 kB / 1.312 GB, free: 50.14 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.007053/5.121, allocations: 2.741 MB / 1.314 GB, free: 47.41 MB / 475.1 MB Notification: Performance of sort global known variables: time 7.51e-07/5.121, allocations: 0 / 1.314 GB, free: 47.41 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.02/5.141, allocations: 3.06 MB / 1.317 GB, free: 44.36 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (154): * Single equations (assignments): 147 * 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 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.4928/5.634, allocations: 48.56 MB / 1.365 GB, free: 118.3 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.05978/5.693, allocations: 23.58 MB / 1.388 GB, free: 115.5 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/5.693, allocations: 2.938 kB / 1.388 GB, free: 115.5 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.04045/5.734, allocations: 13.25 MB / 1.401 GB, free: 109.8 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01028/5.744, allocations: 0.5448 MB / 1.401 GB, free: 109.6 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08447/5.829, allocations: 23.46 MB / 1.424 GB, free: 96.52 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01177/5.841, allocations: 5.324 MB / 1.429 GB, free: 92.61 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006524/5.847, allocations: 3.104 MB / 1.432 GB, free: 89.72 MB / 475.1 MB Notification: Performance of SimCode: time 1.112e-06/5.847, allocations: 0 / 1.432 GB, free: 89.72 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.188/13.03, allocations: 265.6 MB / 1.692 GB, free: 109.7 MB / 475.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat