Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001665/0.001665, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.954/1.954, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001161/0.001161, allocations: 95.39 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004008/0.0004008, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3434, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1656/0.5091, allocations: 99.78 MB / 474.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/0.5095, allocations: 91.95 kB / 474.5 MB, free: 12.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7967/1.306, allocations: 126.8 MB / 0.5873 GB, free: 27.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.288e-06/1.306, allocations: 0 / 0.5873 GB, free: 27.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.001076/1.307, allocations: 123.9 kB / 0.5874 GB, free: 27.18 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.03084/1.338, allocations: 6.794 MB / 0.594 GB, free: 20.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/1.338, allocations: 8.031 kB / 0.594 GB, free: 20.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006068/1.344, allocations: 1.312 MB / 0.5953 GB, free: 18.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05986/1.404, allocations: 8.307 MB / 0.6034 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02713/1.431, allocations: 7.319 MB / 0.6106 GB, free: 3.266 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005876/1.432, allocations: 451.8 kB / 0.611 GB, free: 2.824 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003761/1.436, allocations: 0.5934 MB / 0.6116 GB, free: 2.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05265/1.489, allocations: 15.73 MB / 0.6269 GB, free: 1.332 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004826/1.489, allocations: 75.25 kB / 0.627 GB, free: 1.258 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003573/1.493, allocations: 283.8 kB / 0.6273 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004099/1.497, allocations: 1.616 MB / 0.6288 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0466/1.544, allocations: 13.98 MB / 0.6425 GB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4102/1.954, allocations: 64.09 MB / 0.7051 GB, free: 36.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02263/1.977, allocations: 6.435 MB / 0.7114 GB, free: 33.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03602/2.013, allocations: 14.32 MB / 0.7254 GB, free: 26.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/2.013, allocations: 66.64 kB / 0.7254 GB, free: 26.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 6.863e-06/2.013, allocations: 0 / 0.7254 GB, free: 26.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=336): time 0.2666/2.279, allocations: 42.18 MB / 0.7666 GB, free: 8.004 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/2.279, allocations: 216.5 kB / 0.7668 GB, free: 7.754 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/2.292, allocations: 4.854 MB / 0.7715 GB, free: 3.457 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009052/2.293, allocations: 69.7 kB / 0.7716 GB, free: 3.383 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004012/2.297, allocations: 4.302 MB / 0.7758 GB, free: 15.08 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002604/2.3, allocations: 1.244 MB / 0.777 GB, free: 13.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001864/2.301, allocations: 172 kB / 0.7772 GB, free: 13.68 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001211/2.303, allocations: 0.6865 MB / 0.7779 GB, free: 12.99 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01298/2.316, allocations: 4.538 MB / 0.7823 GB, free: 8.441 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01816/2.334, allocations: 9.508 MB / 0.7916 GB, free: 12.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0169/2.351, allocations: 6.425 MB / 0.7979 GB, free: 6.266 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001674/2.351, allocations: 52 kB / 0.7979 GB, free: 6.215 MB / 442.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.3854/2.737, allocations: 18.51 MB / 0.816 GB, free: 95.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/2.737, allocations: 77.59 kB / 0.8161 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002754/2.737, allocations: 175.1 kB / 0.8162 GB, free: 95.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03943/2.776, allocations: 5.634 MB / 0.8217 GB, free: 95.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01394/2.79, allocations: 2.052 MB / 0.8237 GB, free: 95.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0524/2.843, allocations: 24.3 MB / 0.8475 GB, free: 90.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01142/2.854, allocations: 0.5348 MB / 0.848 GB, free: 90.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002269/2.857, allocations: 0.5057 MB / 0.8485 GB, free: 90.75 MB / 442.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 () * Number of clocked 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.009178/2.866, allocations: 3.099 MB / 0.8515 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001647/2.868, allocations: 0.5019 MB / 0.852 GB, free: 89.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05435/2.922, allocations: 12.35 MB / 0.8641 GB, free: 85.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001199/2.922, allocations: 53.67 kB / 0.8641 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.55e-05/2.922, allocations: 14.42 kB / 0.8641 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.906e-05/2.922, allocations: 14.44 kB / 0.8641 GB, free: 85.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0835/3.006, allocations: 23.95 MB / 0.8875 GB, free: 73.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.413e-05/3.006, allocations: 4 kB / 0.8875 GB, free: 73.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005573/3.012, allocations: 0.5689 MB / 0.8881 GB, free: 72.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03403/3.046, allocations: 4.647 MB / 0.8926 GB, free: 69.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008702/3.047, allocations: 63.73 kB / 0.8927 GB, free: 69.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03901/3.086, allocations: 19.57 MB / 0.9118 GB, free: 50.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.909e-06/3.086, allocations: 15.22 kB / 0.9118 GB, free: 50.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05742/3.143, allocations: 17.37 MB / 0.9288 GB, free: 32.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004572/3.148, allocations: 1.218 MB / 0.93 GB, free: 31.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002011/3.15, allocations: 52 kB / 0.93 GB, free: 31.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00629/3.156, allocations: 250.8 kB / 0.9302 GB, free: 31.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001448/3.158, allocations: 192.7 kB / 0.9304 GB, free: 30.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004569/3.158, allocations: 87.81 kB / 0.9305 GB, free: 30.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008945/3.167, allocations: 3.381 MB / 0.9338 GB, free: 27.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/3.167, allocations: 0 / 0.9338 GB, free: 27.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01096/3.178, allocations: 1.709 MB / 0.9355 GB, free: 25.83 MB / 442.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 () * Number of clocked 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.05937/3.237, allocations: 19.08 MB / 0.9541 GB, free: 6.551 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02575/3.263, allocations: 10.46 MB / 0.9643 GB, free: 12.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/3.263, allocations: 4 kB / 0.9643 GB, free: 12.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3255/3.589, allocations: 3.961 MB / 0.9682 GB, free: 116.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005111/3.594, allocations: 0.5803 MB / 0.9688 GB, free: 116.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09733/3.691, allocations: 151 MB / 1.116 GB, free: 9.398 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01343/3.705, allocations: 4.772 MB / 1.121 GB, free: 8.531 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008726/3.714, allocations: 2.972 MB / 1.124 GB, free: 8.52 MB / 490.7 MB Notification: Performance of SimCode: time 1.673e-06/3.714, allocations: 1.312 kB / 1.124 GB, free: 8.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.595/9.309, allocations: 179.1 MB / 1.299 GB, free: 51.97 MB / 490.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat