Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.166/2.166, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.488e-05/2.486e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3327, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1801/0.5129, allocations: 101.2 MB / 459.4 MB, free: 9.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.5133, allocations: 87.94 kB / 459.5 MB, free: 9.395 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6312/1.145, allocations: 82.35 MB / 0.5291 GB, free: 39.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.145, allocations: 0 / 0.5291 GB, free: 39.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000246/1.145, allocations: 91.98 kB / 0.5292 GB, free: 39.3 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.02511/1.17, allocations: 4.49 MB / 0.5336 GB, free: 34.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/1.17, allocations: 8.031 kB / 0.5336 GB, free: 34.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01737/1.187, allocations: 2.217 MB / 0.5357 GB, free: 32.51 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01628/1.204, allocations: 4.5 MB / 0.5401 GB, free: 27.95 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002551/1.204, allocations: 140 kB / 0.5403 GB, free: 27.81 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002332/1.206, allocations: 247.9 kB / 0.5405 GB, free: 27.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01555/1.222, allocations: 6.408 MB / 0.5468 GB, free: 21.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02182/1.244, allocations: 9.621 MB / 0.5562 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002192/1.244, allocations: 63.41 kB / 0.5562 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00126/1.245, allocations: 32 kB / 0.5563 GB, free: 10.44 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002231/1.248, allocations: 1.01 MB / 0.5572 GB, free: 9.418 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07451/1.322, allocations: 45.41 MB / 0.6016 GB, free: 10.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006834/1.329, allocations: 3.232 MB / 0.6047 GB, free: 7.305 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00388/1.333, allocations: 1.756 MB / 0.6065 GB, free: 5.539 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/1.345, allocations: 4.619 MB / 0.611 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.117e-05/1.345, allocations: 59.28 kB / 0.611 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of pre-optimization done (n=142): time 8.486e-06/1.345, allocations: 0 / 0.611 GB, free: 0.6445 MB / 442.7 MB Notification: Performance of matching and sorting (n=148): time 0.03677/1.382, allocations: 11.05 MB / 0.6218 GB, free: 5.492 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/1.382, allocations: 141.3 kB / 0.622 GB, free: 5.324 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007233/1.389, allocations: 3.068 MB / 0.625 GB, free: 2.262 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004082/1.39, allocations: 25.7 kB / 0.625 GB, free: 2.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3154/1.705, allocations: 3.17 MB / 0.6281 GB, free: 108.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/1.706, allocations: 0.5829 MB / 0.6286 GB, free: 108.3 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006598/1.707, allocations: 0.5625 kB / 0.6286 GB, free: 108.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000532/1.707, allocations: 0.5626 MB / 0.6292 GB, free: 108 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005164/1.713, allocations: 1.827 MB / 0.631 GB, free: 108 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00773/1.72, allocations: 5.636 MB / 0.6365 GB, free: 103 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007029/1.728, allocations: 3.189 MB / 0.6396 GB, free: 103 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/1.728, allocations: 41.81 kB / 0.6396 GB, free: 103 MB / 458.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.02111/1.749, allocations: 7.18 MB / 0.6466 GB, free: 102.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/1.749, allocations: 73.64 kB / 0.6467 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002107/1.749, allocations: 141.1 kB / 0.6469 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004313/1.754, allocations: 0.9143 MB / 0.6477 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008628/1.762, allocations: 1.403 MB / 0.6491 GB, free: 102.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00865/1.771, allocations: 4.614 MB / 0.6536 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006656/1.778, allocations: 210.6 kB / 0.6538 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001547/1.779, allocations: 382 kB / 0.6542 GB, free: 101 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 628 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (741): * Single equations (assignments): 737 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001958/1.781, allocations: 444.3 kB / 0.6546 GB, free: 100.8 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008957/1.79, allocations: 2.995 MB / 0.6575 GB, free: 100.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.791, allocations: 309.8 kB / 0.6578 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008868/1.8, allocations: 2.721 MB / 0.6605 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.494e-05/1.8, allocations: 22.16 kB / 0.6605 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/1.8, allocations: 7.938 kB / 0.6605 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-05/1.8, allocations: 9.719 kB / 0.6605 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01964/1.82, allocations: 6.214 MB / 0.6666 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.582e-05/1.82, allocations: 0 / 0.6666 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002563/1.823, allocations: 246.7 kB / 0.6668 GB, free: 98.93 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/1.826, allocations: 0.6969 MB / 0.6675 GB, free: 98.81 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002798/1.827, allocations: 7.25 kB / 0.6675 GB, free: 98.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007493/1.834, allocations: 4.187 MB / 0.6716 GB, free: 96.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/1.834, allocations: 0 / 0.6716 GB, free: 96.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01118/1.845, allocations: 5.001 MB / 0.6765 GB, free: 94.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00206/1.848, allocations: 0.5631 MB / 0.677 GB, free: 94.06 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007312/1.848, allocations: 3.875 kB / 0.677 GB, free: 94.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/1.851, allocations: 68.98 kB / 0.6771 GB, free: 94.06 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004478/1.851, allocations: 96.66 kB / 0.6772 GB, free: 94.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001718/1.851, allocations: 43.16 kB / 0.6772 GB, free: 94.04 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004536/1.856, allocations: 2.033 MB / 0.6792 GB, free: 93.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.856, allocations: 0 / 0.6792 GB, free: 93.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006762/1.863, allocations: 0.82 MB / 0.68 GB, free: 93.29 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 113 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01225/1.875, allocations: 5.788 MB / 0.6857 GB, free: 90.56 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009345/1.885, allocations: 4.387 MB / 0.69 GB, free: 86.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/1.885, allocations: 0 / 0.69 GB, free: 86.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00257/1.887, allocations: 1.315 MB / 0.6912 GB, free: 85.68 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/1.89, allocations: 316.3 kB / 0.6916 GB, free: 85.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0258/1.916, allocations: 8.797 MB / 0.7001 GB, free: 77.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005473/1.921, allocations: 3.316 MB / 0.7034 GB, free: 75.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004022/1.925, allocations: 1.867 MB / 0.7052 GB, free: 73.58 MB / 458.7 MB Notification: Performance of SimCode: time 2.484e-06/1.925, allocations: 0 / 0.7052 GB, free: 73.58 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.222/6.147, allocations: 93.64 MB / 0.7966 GB, free: 2.086 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat does not exist to compare? outputFormat=mat