Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",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.001391/0.001391, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.2 MB / 219.8 MB, free: 14.21 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.0008262/0.0008262, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.876e-05/2.878e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08351/0.08356, allocations: 47.58 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3057/0.3893, allocations: 99.67 MB / 469.8 MB, free: 9.93 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.3896, allocations: 85.39 kB / 469.9 MB, free: 9.887 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5073/0.8969, allocations: 126.9 MB / 0.5828 GB, free: 89.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.897, allocations: 0 / 0.5828 GB, free: 89.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000249/0.8972, allocations: 127.6 kB / 0.583 GB, free: 89.52 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01651/0.9138, allocations: 6.328 MB / 0.5891 GB, free: 86.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.9138, allocations: 15.75 kB / 0.5892 GB, free: 86.59 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003614/0.9174, allocations: 1.308 MB / 0.5904 GB, free: 86.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/0.9466, allocations: 8.318 MB / 0.5986 GB, free: 83.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01573/0.9624, allocations: 7.286 MB / 0.6057 GB, free: 76.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.9627, allocations: 458 kB / 0.6061 GB, free: 76.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002583/0.9653, allocations: 0.5862 MB / 0.6067 GB, free: 75.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02725/0.9926, allocations: 15.6 MB / 0.6219 GB, free: 59.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003706/0.993, allocations: 71.33 kB / 0.622 GB, free: 58.94 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002422/0.9954, allocations: 284.1 kB / 0.6222 GB, free: 58.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002057/0.9975, allocations: 1.618 MB / 0.6238 GB, free: 57.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02615/1.024, allocations: 13.78 MB / 0.6373 GB, free: 43.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3297/1.353, allocations: 64.1 MB / 0.6999 GB, free: 56.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01401/1.368, allocations: 6.388 MB / 0.7061 GB, free: 55.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004682/1.372, allocations: 3.464 MB / 0.7095 GB, free: 55.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01848/1.391, allocations: 14.32 MB / 0.7235 GB, free: 51.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/1.391, allocations: 69.22 kB / 0.7236 GB, free: 51.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 6.603e-06/1.391, allocations: 0 / 0.7236 GB, free: 51.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.07906/1.47, allocations: 29.66 MB / 0.7525 GB, free: 45.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.035e-05/1.47, allocations: 214.9 kB / 0.7527 GB, free: 45.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006714/1.477, allocations: 4.802 MB / 0.7574 GB, free: 43.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006945/1.478, allocations: 73.48 kB / 0.7575 GB, free: 43.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00231/1.48, allocations: 4.442 MB / 0.7618 GB, free: 40.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001427/1.481, allocations: 1.247 MB / 0.763 GB, free: 39.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004279/1.482, allocations: 174.9 kB / 0.7632 GB, free: 39.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003509/1.482, allocations: 0.6806 MB / 0.7639 GB, free: 38.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005178/1.487, allocations: 4.465 MB / 0.7682 GB, free: 37.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007364/1.495, allocations: 9.423 MB / 0.7774 GB, free: 29.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008017/1.503, allocations: 6.406 MB / 0.7837 GB, free: 25.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.338e-05/1.503, allocations: 52 kB / 0.7837 GB, free: 25.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.03942/1.542, allocations: 18.52 MB / 0.8018 GB, free: 11.53 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002945/1.543, allocations: 80 kB / 0.8019 GB, free: 11.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003936/1.543, allocations: 177.4 kB / 0.8021 GB, free: 11.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02002/1.563, allocations: 5.631 MB / 0.8076 GB, free: 7.574 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006875/1.57, allocations: 2.047 MB / 0.8096 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02918/1.599, allocations: 23.65 MB / 0.8327 GB, free: 13.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007473/1.607, allocations: 0.5423 MB / 0.8332 GB, free: 13.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001413/1.608, allocations: 0.5 MB / 0.8337 GB, free: 12.57 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1060): * Single equations (assignments): 1052 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001487/1.61, allocations: 0.746 MB / 0.8344 GB, free: 11.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009249/1.611, allocations: 0.5013 MB / 0.8349 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02888/1.639, allocations: 12.27 MB / 0.8469 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.474e-05/1.64, allocations: 55.95 kB / 0.8469 GB, free: 14.92 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.64, allocations: 15.98 kB / 0.8469 GB, free: 14.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.726e-05/1.64, allocations: 11.95 kB / 0.847 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05204/1.692, allocations: 23.87 MB / 0.8703 GB, free: 6.547 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.74e-05/1.692, allocations: 4 kB / 0.8703 GB, free: 6.543 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003084/1.695, allocations: 0.5616 MB / 0.8708 GB, free: 5.98 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01806/1.713, allocations: 4.653 MB / 0.8754 GB, free: 1.32 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006829/1.714, allocations: 52 kB / 0.8754 GB, free: 1.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2723/1.986, allocations: 18.91 MB / 0.8939 GB, free: 146.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/1.986, allocations: 10.19 kB / 0.8939 GB, free: 146.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03168/2.018, allocations: 17.27 MB / 0.9108 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003615/2.021, allocations: 1.217 MB / 0.9119 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001129/2.022, allocations: 54.77 kB / 0.912 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003033/2.026, allocations: 251.5 kB / 0.9122 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007294/2.026, allocations: 188.8 kB / 0.9124 GB, free: 140.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002745/2.027, allocations: 92.02 kB / 0.9125 GB, free: 140.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006643/2.033, allocations: 3.326 MB / 0.9158 GB, free: 139.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.033, allocations: 0 / 0.9158 GB, free: 139.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01071/2.044, allocations: 1.71 MB / 0.9174 GB, free: 138.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (251): * Single equations (assignments): 243 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03186/2.076, allocations: 18.98 MB / 0.936 GB, free: 130.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0156/2.092, allocations: 10.33 MB / 0.946 GB, free: 127.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/2.092, allocations: 1.969 kB / 0.946 GB, free: 127.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005232/2.097, allocations: 3.907 MB / 0.9499 GB, free: 125.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/2.1, allocations: 0.5791 MB / 0.9504 GB, free: 125.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03214/2.132, allocations: 15.55 MB / 0.9656 GB, free: 111.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00553/2.138, allocations: 4.763 MB / 0.9703 GB, free: 108 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007109/2.145, allocations: 2.988 MB / 0.9732 GB, free: 106.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004708/2.15, allocations: 2.927 MB / 0.976 GB, free: 103.5 MB / 490.7 MB Notification: Performance of SimCode: time 2.244e-06/2.15, allocations: 0 / 0.976 GB, free: 103.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4296/2.579, allocations: 135 MB / 1.108 GB, free: 134.1 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/2.58, allocations: 172.2 kB / 1.108 GB, free: 133.9 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.407/7.986, allocations: 0 / 1.108 GB, free: 133.9 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat