Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.2 MB / 186.1 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005318/0.0005318, allocations: 11.98 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09275, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4034/0.4963, allocations: 88.49 MB / 360.6 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003316/0.4967, allocations: 87.95 kB / 360.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7773/1.274, allocations: 126.1 MB / 486.8 MB, free: 70.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.274, allocations: 0 / 486.8 MB, free: 70.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003817/1.274, allocations: 123.8 kB / 486.9 MB, free: 70.48 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02803/1.302, allocations: 6.78 MB / 493.7 MB, free: 66.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/1.303, allocations: 6.781 kB / 493.7 MB, free: 66.15 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00645/1.309, allocations: 1.311 MB / 495 MB, free: 65.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0587/1.368, allocations: 8.306 MB / 0.4915 GB, free: 57.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0273/1.395, allocations: 7.299 MB / 0.4987 GB, free: 50.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006007/1.396, allocations: 448.4 kB / 0.4991 GB, free: 49.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003967/1.4, allocations: 0.5896 MB / 0.4997 GB, free: 49.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04708/1.447, allocations: 15.7 MB / 0.515 GB, free: 32.51 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004259/1.447, allocations: 75.23 kB / 0.5151 GB, free: 32.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00338/1.451, allocations: 286 kB / 0.5154 GB, free: 32.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/1.454, allocations: 1.618 MB / 0.5169 GB, free: 30.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03901/1.493, allocations: 13.96 MB / 0.5306 GB, free: 16.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3914/1.885, allocations: 63.98 MB / 0.593 GB, free: 36.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02235/1.907, allocations: 6.435 MB / 0.5993 GB, free: 35.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03513/1.942, allocations: 14.33 MB / 0.6133 GB, free: 31.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.094e-05/1.942, allocations: 62.75 kB / 0.6134 GB, free: 31.56 MB / 362.7 MB Notification: Performance of pre-optimization done (n=286): time 7.233e-06/1.942, allocations: 0 / 0.6134 GB, free: 31.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=336): time 0.266/2.208, allocations: 42.14 MB / 0.6545 GB, free: 22.54 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/2.209, allocations: 216.3 kB / 0.6547 GB, free: 22.29 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01245/2.221, allocations: 4.816 MB / 0.6595 GB, free: 18.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001082/2.222, allocations: 73.7 kB / 0.6595 GB, free: 18.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005433/2.228, allocations: 4.42 MB / 0.6638 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002596/2.23, allocations: 1.241 MB / 0.665 GB, free: 13.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001508/2.232, allocations: 176 kB / 0.6652 GB, free: 12.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0008409/2.233, allocations: 0.6781 MB / 0.6659 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01497/2.248, allocations: 4.531 MB / 0.6703 GB, free: 8.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0202/2.268, allocations: 9.481 MB / 0.6796 GB, free: 13.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02246/2.29, allocations: 6.42 MB / 0.6858 GB, free: 7.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002253/2.291, allocations: 48 kB / 0.6859 GB, free: 7.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=1148) (initialization): time 0.07873/2.37, allocations: 18.66 MB / 0.7041 GB, free: 5.238 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001674/2.37, allocations: 80 kB / 0.7042 GB, free: 5.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003097/2.37, allocations: 172 kB / 0.7043 GB, free: 4.992 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3268/2.697, allocations: 5.626 MB / 0.7098 GB, free: 98.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01405/2.711, allocations: 2.042 MB / 0.7118 GB, free: 98.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05232/2.763, allocations: 24.27 MB / 0.7355 GB, free: 94.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/2.775, allocations: 0.5415 MB / 0.7361 GB, free: 93.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002411/2.777, allocations: 0.505 MB / 0.7366 GB, free: 93.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (1057): * Single equations (assignments): 1049 * 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.009284/2.787, allocations: 3.097 MB / 0.7396 GB, free: 92.74 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001576/2.788, allocations: 0.4942 MB / 0.7401 GB, free: 92.74 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05445/2.843, allocations: 12.33 MB / 0.7521 GB, free: 88.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001532/2.843, allocations: 56.75 kB / 0.7522 GB, free: 88.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.567e-05/2.843, allocations: 7.656 kB / 0.7522 GB, free: 88.82 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.05e-05/2.843, allocations: 17.45 kB / 0.7522 GB, free: 88.81 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08464/2.928, allocations: 23.94 MB / 0.7756 GB, free: 79.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.268e-05/2.928, allocations: 9.938 kB / 0.7756 GB, free: 79.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00637/2.934, allocations: 0.5712 MB / 0.7761 GB, free: 79.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04865/2.983, allocations: 4.644 MB / 0.7807 GB, free: 78.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001169/2.984, allocations: 56.17 kB / 0.7807 GB, free: 78.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04889/3.033, allocations: 19.57 MB / 0.7998 GB, free: 61.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.728e-06/3.033, allocations: 11 kB / 0.7998 GB, free: 61.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05741/3.091, allocations: 17.37 MB / 0.8168 GB, free: 45.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004572/3.095, allocations: 1.216 MB / 0.818 GB, free: 43.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00191/3.097, allocations: 52.94 kB / 0.818 GB, free: 43.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005978/3.103, allocations: 250.3 kB / 0.8183 GB, free: 43.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001287/3.105, allocations: 195.2 kB / 0.8185 GB, free: 43.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004345/3.105, allocations: 81.09 kB / 0.8185 GB, free: 43.32 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008598/3.114, allocations: 3.353 MB / 0.8218 GB, free: 39.99 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.253e-06/3.114, allocations: 0 / 0.8218 GB, free: 39.99 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01117/3.125, allocations: 1.699 MB / 0.8235 GB, free: 38.3 MB / 394.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.05827/3.183, allocations: 19.08 MB / 0.8421 GB, free: 19.07 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2866/3.47, allocations: 10.43 MB / 0.8523 GB, free: 103.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/3.47, allocations: 3.75 kB / 0.8523 GB, free: 103.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01026/3.48, allocations: 3.931 MB / 0.8561 GB, free: 102.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005603/3.486, allocations: 0.5764 MB / 0.8567 GB, free: 102.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3673/3.853, allocations: 149.8 MB / 1.003 GB, free: 108.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01348/3.867, allocations: 4.75 MB / 1.008 GB, free: 107.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.02015/3.887, allocations: 2.984 MB / 1.01 GB, free: 107.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009352/3.896, allocations: 2.916 MB / 1.013 GB, free: 107.4 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/3.897, allocations: 1.594 kB / 1.013 GB, free: 107.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5558/4.452, allocations: 132.7 MB / 1.143 GB, free: 117 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002506/4.453, allocations: 195.9 kB / 1.143 GB, free: 116.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.879/11.33, allocations: 0 / 1.143 GB, free: 116.8 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2_res.mat does not exist to compare? outputFormat=mat