Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadModel(ModelicaTest): time 1.979/1.979, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004392, allocations: 16 kB / 282.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3029, allocations: 48.7 MB / 331.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.005576/0.3085, allocations: 2.072 MB / 333.3 MB, free: 5.258 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002369/0.311, allocations: 0.6414 MB / 333.9 MB, free: 4.805 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003466/0.3114, allocations: 8.031 kB / 333.9 MB, free: 4.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000149/0.3115, allocations: 31.11 kB / 333.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005441/0.3121, allocations: 101.6 kB / 334 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.3126, allocations: 67.83 kB / 334.1 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007591/0.3134, allocations: 231.3 kB / 334.3 MB, free: 4.551 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003439/0.3138, allocations: 67.91 kB / 334.4 MB, free: 4.523 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003964/0.3142, allocations: 114.9 kB / 334.5 MB, free: 4.469 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003652/0.3146, allocations: 114.2 kB / 334.6 MB, free: 4.418 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.258e-05/0.3147, allocations: 12.03 kB / 334.6 MB, free: 4.418 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.3148, allocations: 10.94 kB / 334.6 MB, free: 4.418 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001043/0.3149, allocations: 49.88 kB / 334.7 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.3151, allocations: 77.59 kB / 334.8 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005709/0.3157, allocations: 212.1 kB / 335 MB, free: 4.277 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.271e-06/0.3157, allocations: 0 / 335 MB, free: 4.277 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.563e-06/0.3158, allocations: 1.156 kB / 335 MB, free: 4.277 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.3158, allocations: 0 / 335 MB, free: 4.277 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001715/0.3175, allocations: 0.5458 MB / 335.5 MB, free: 3.816 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.185e-05/0.3176, allocations: 9.094 kB / 335.5 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001702/0.3178, allocations: 36.97 kB / 335.6 MB, free: 3.797 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006392/0.3185, allocations: 251.1 kB / 335.8 MB, free: 3.559 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.565e-05/0.3186, allocations: 19.47 kB / 335.8 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001582/0.3187, allocations: 33.47 kB / 335.9 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.3201, allocations: 286.2 kB / 336.1 MB, free: 3.371 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.84e-05/0.3201, allocations: 6.734 kB / 336.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-05/0.3202, allocations: 14.62 kB / 336.2 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.3203, allocations: 7.344 kB / 336.2 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.3216, allocations: 200.1 kB / 336.4 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004013/0.3256, allocations: 1.325 MB / 337.7 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.3268, allocations: 254.9 kB / 337.9 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-05/0.3269, allocations: 11.39 kB / 337.9 MB, free: 2.031 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.327, allocations: 37.08 kB / 338 MB, free: 1.988 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 6.486e-06/0.327, allocations: 4 kB / 338 MB, free: 1.984 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.006318/0.3333, allocations: 1.625 MB / 339.6 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.343e-05/0.3334, allocations: 137.7 kB / 339.7 MB, free: 428 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.334, allocations: 226.6 kB / 340 MB, free: 256 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.239e-05/0.3341, allocations: 34.7 kB / 340 MB, free: 216 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002265/0.3343, allocations: 240.2 kB / 340.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002427/0.3346, allocations: 108.9 kB / 340.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/0.3347, allocations: 9.5 kB / 340.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002965/0.335, allocations: 322.5 kB / 340.7 MB, free: 15.56 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008138/0.3358, allocations: 115 kB / 340.8 MB, free: 15.52 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.3369, allocations: 251.3 kB / 341 MB, free: 15.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009352/0.3378, allocations: 146.5 kB / 341.2 MB, free: 15.22 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.3379, allocations: 1.344 kB / 341.2 MB, free: 15.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.002389/0.3403, allocations: 414.5 kB / 341.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.146e-05/0.3404, allocations: 8.25 kB / 341.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.3404, allocations: 4.531 kB / 341.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.453e-05/0.3405, allocations: 7.594 kB / 341.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3416, allocations: 107.4 kB / 341.7 MB, free: 14.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.778e-05/0.3417, allocations: 19.58 kB / 341.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007149/0.3424, allocations: 30.48 kB / 341.7 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.905e-05/0.3425, allocations: 17.97 kB / 341.8 MB, free: 14.96 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004526/0.343, allocations: 148.8 kB / 341.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/0.3434, allocations: 37.34 kB / 341.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.3436, allocations: 40.61 kB / 342 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.49e-05/0.3436, allocations: 4.438 kB / 342 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.3437, allocations: 1.156 kB / 342 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.3437, allocations: 5.266 kB / 342 MB, free: 14.76 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.3468, allocations: 1.003 MB / 343 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.564e-06/0.3468, allocations: 1.344 kB / 343 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.3473, allocations: 91.47 kB / 343.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.961e-06/0.3473, allocations: 2.812 kB / 343.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.3474, allocations: 12.39 kB / 343.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.115e-06/0.3474, allocations: 2.656 kB / 343.1 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.005e-06/0.3474, allocations: 5.031 kB / 343.1 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.3488, allocations: 0.7546 MB / 343.9 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001764/0.349, allocations: 114.7 kB / 344 MB, free: 13.24 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.707e-05/0.3491, allocations: 7.938 kB / 344 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004043/0.3495, allocations: 30.88 kB / 344 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/0.3496, allocations: 31.25 kB / 344.1 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.928e-05/0.3497, allocations: 15.16 kB / 344.1 MB, free: 13.19 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002016/0.3499, allocations: 157.9 kB / 344.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.38e-07/0.3499, allocations: 0 / 344.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006872/0.3506, allocations: 72.31 kB / 344.3 MB, free: 13.06 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000142/0.3507, allocations: 108.8 kB / 344.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009069/0.3517, allocations: 293.5 kB / 344.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3517, allocations: 0 / 344.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000415/0.3521, allocations: 148.9 kB / 344.8 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005618/0.3527, allocations: 31.36 kB / 344.9 MB, free: 12.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002051/0.3547, allocations: 1.105 MB / 346 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.3553, allocations: 0.7775 MB / 346.7 MB, free: 11.13 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3554, allocations: 26.59 kB / 346.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of SimCode: time 1.607e-06/0.3555, allocations: 0 / 346.8 MB, free: 11.12 MB / 282.7 MB Notification: Performance of Templates: time 0.007117/0.3626, allocations: 3.219 MB / 350 MB, free: 9.465 MB / 282.7 MB