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.002424/0.002424, allocations: 181.3 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.174/2.174, allocations: 205.2 MB / 219.4 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.001105/0.001105, allocations: 94.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.318e-05/3.335e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.5463, allocations: 99.68 MB / 468.9 MB, free: 9.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.5467, allocations: 86.83 kB / 469 MB, free: 9.766 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8118/1.359, allocations: 126.9 MB / 0.5819 GB, free: 89.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.804e-06/1.359, allocations: 4 kB / 0.5819 GB, free: 89.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004036/1.359, allocations: 115.3 kB / 0.582 GB, free: 89.26 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.02692/1.386, allocations: 6.336 MB / 0.5882 GB, free: 86.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/1.386, allocations: 15.3 kB / 0.5882 GB, free: 86.33 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00636/1.392, allocations: 1.304 MB / 0.5895 GB, free: 85.8 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06032/1.453, allocations: 8.319 MB / 0.5976 GB, free: 83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02854/1.481, allocations: 7.286 MB / 0.6048 GB, free: 76.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006089/1.482, allocations: 454.6 kB / 0.6052 GB, free: 76.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004028/1.486, allocations: 0.5851 MB / 0.6058 GB, free: 75.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04756/1.534, allocations: 15.6 MB / 0.621 GB, free: 59.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003941/1.534, allocations: 67.41 kB / 0.6211 GB, free: 59.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003287/1.537, allocations: 289.5 kB / 0.6213 GB, free: 59.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003481/1.541, allocations: 1.623 MB / 0.6229 GB, free: 57.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04073/1.582, allocations: 13.78 MB / 0.6364 GB, free: 43.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4594/2.041, allocations: 64.09 MB / 0.699 GB, free: 56.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02388/2.065, allocations: 6.39 MB / 0.7052 GB, free: 55.33 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008366/2.074, allocations: 3.459 MB / 0.7086 GB, free: 55.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03773/2.111, allocations: 14.32 MB / 0.7226 GB, free: 51.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.292e-05/2.111, allocations: 71.11 kB / 0.7226 GB, free: 51.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=286): time 7.805e-06/2.111, allocations: 0 / 0.7226 GB, free: 51.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=336): time 0.1571/2.269, allocations: 29.67 MB / 0.7516 GB, free: 45.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.269, allocations: 222.7 kB / 0.7518 GB, free: 45.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01244/2.281, allocations: 4.802 MB / 0.7565 GB, free: 43.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009536/2.282, allocations: 70 kB / 0.7566 GB, free: 43.87 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003891/2.286, allocations: 4.308 MB / 0.7608 GB, free: 40.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00213/2.288, allocations: 1.25 MB / 0.762 GB, free: 39.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001285/2.29, allocations: 173 kB / 0.7622 GB, free: 39.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006781/2.29, allocations: 0.6819 MB / 0.7628 GB, free: 38.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01079/2.301, allocations: 4.464 MB / 0.7672 GB, free: 37.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01423/2.315, allocations: 9.422 MB / 0.7764 GB, free: 29.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/2.329, allocations: 6.404 MB / 0.7827 GB, free: 25.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001902/2.33, allocations: 48 kB / 0.7827 GB, free: 25.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.07081/2.401, allocations: 18.35 MB / 0.8006 GB, free: 11.83 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/2.401, allocations: 80 kB / 0.8007 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002913/2.401, allocations: 172 kB / 0.8009 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03986/2.441, allocations: 5.63 MB / 0.8064 GB, free: 7.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01363/2.455, allocations: 2.051 MB / 0.8084 GB, free: 5.883 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05675/2.511, allocations: 23.63 MB / 0.8314 GB, free: 13.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/2.523, allocations: 0.5451 MB / 0.832 GB, free: 13.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002621/2.526, allocations: 0.5029 MB / 0.8325 GB, free: 12.94 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.004874/2.531, allocations: 0.7539 MB / 0.8332 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002338/2.533, allocations: 0.5013 MB / 0.8337 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06051/2.594, allocations: 12.27 MB / 0.8457 GB, free: 15.33 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001454/2.594, allocations: 55.91 kB / 0.8457 GB, free: 15.28 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.463e-05/2.594, allocations: 8 kB / 0.8457 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.84e-05/2.594, allocations: 15.94 kB / 0.8458 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09524/2.69, allocations: 23.87 MB / 0.8691 GB, free: 6.918 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.749e-05/2.69, allocations: 8.578 kB / 0.8691 GB, free: 6.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006222/2.696, allocations: 0.5656 MB / 0.8696 GB, free: 6.344 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03729/2.733, allocations: 4.653 MB / 0.8742 GB, free: 1.684 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009736/2.734, allocations: 52 kB / 0.8742 GB, free: 1.633 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3657/3.1, allocations: 18.91 MB / 0.8927 GB, free: 146.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.166e-05/3.1, allocations: 9.219 kB / 0.8927 GB, free: 146.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05928/3.159, allocations: 17.27 MB / 0.9096 GB, free: 141.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004755/3.164, allocations: 1.212 MB / 0.9107 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002006/3.166, allocations: 58.45 kB / 0.9108 GB, free: 141 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006156/3.172, allocations: 249.2 kB / 0.911 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001431/3.174, allocations: 190.5 kB / 0.9112 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004557/3.174, allocations: 88.55 kB / 0.9113 GB, free: 140.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008869/3.183, allocations: 3.33 MB / 0.9146 GB, free: 139.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.313e-06/3.183, allocations: 0 / 0.9146 GB, free: 139.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01196/3.195, allocations: 1.707 MB / 0.9162 GB, free: 139.6 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.06155/3.257, allocations: 18.98 MB / 0.9348 GB, free: 131.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02421/3.281, allocations: 10.34 MB / 0.9448 GB, free: 128 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/3.281, allocations: 0 / 0.9448 GB, free: 128 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009515/3.291, allocations: 3.915 MB / 0.9487 GB, free: 126.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005596/3.296, allocations: 0.582 MB / 0.9492 GB, free: 125.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05572/3.352, allocations: 16.25 MB / 0.9651 GB, free: 111.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01508/3.367, allocations: 4.763 MB / 0.9698 GB, free: 108.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01091/3.378, allocations: 2.978 MB / 0.9727 GB, free: 105.5 MB / 490.7 MB Notification: Performance of SimCode: time 2.114e-06/3.378, allocations: 7.125 kB / 0.9727 GB, free: 105.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.038/9.417, allocations: 180.7 MB / 1.149 GB, free: 86.79 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