Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.UnitDeduction.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.UnitDeduction") Notification: Performance of loadModel(ModelicaTest): time 2.192/2.192, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004323/0.0004325, allocations: 12 kB / 314.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2775, allocations: 54.86 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.004933/0.2825, allocations: 3.117 MB / 372.3 MB, free: 7.566 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002554/0.2851, allocations: 1.077 MB / 373.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004356/0.2855, allocations: 23.88 kB / 373.4 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001233/0.2857, allocations: 43.5 kB / 373.4 MB, free: 6.422 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006274/0.2863, allocations: 171.4 kB / 373.6 MB, free: 6.254 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007788/0.2871, allocations: 251.5 kB / 373.9 MB, free: 6.008 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008897/0.288, allocations: 0.5233 MB / 374.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00042/0.2885, allocations: 195.7 kB / 374.6 MB, free: 5.293 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004354/0.2889, allocations: 243 kB / 374.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.2893, allocations: 230.7 kB / 375 MB, free: 4.828 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.382e-05/0.2894, allocations: 20 kB / 375 MB, free: 4.809 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.868e-05/0.2895, allocations: 20 kB / 375.1 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000111/0.2896, allocations: 95.53 kB / 375.2 MB, free: 4.695 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.2897, allocations: 125.3 kB / 375.3 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006557/0.2904, allocations: 0.4916 MB / 375.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.803e-06/0.2904, allocations: 0 / 375.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.979e-06/0.2904, allocations: 0 / 375.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.866e-06/0.2904, allocations: 0 / 375.8 MB, free: 4.074 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.00175/0.2922, allocations: 0.8722 MB / 376.6 MB, free: 3.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.2923, allocations: 12.03 kB / 376.7 MB, free: 3.141 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.2924, allocations: 79.06 kB / 376.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007861/0.2932, allocations: 438.8 kB / 377.2 MB, free: 2.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-05/0.2933, allocations: 37 kB / 377.2 MB, free: 2.555 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.2934, allocations: 59.91 kB / 377.3 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.2946, allocations: 490.2 kB / 377.7 MB, free: 1.996 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.2947, allocations: 0 / 377.7 MB, free: 1.996 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.39e-05/0.2947, allocations: 23.95 kB / 377.8 MB, free: 1.973 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.2948, allocations: 12 kB / 377.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.2958, allocations: 346.5 kB / 378.1 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/0.3002, allocations: 1.792 MB / 379.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001346/0.3016, allocations: 469.4 kB / 380.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.3016, allocations: 4 kB / 380.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.3017, allocations: 42.55 kB / 380.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.308e-06/0.3017, allocations: 0 / 380.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.001694/0.3034, allocations: 0.5529 MB / 381 MB, free: 14.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.713e-05/0.3035, allocations: 110.8 kB / 381.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007133/0.3042, allocations: 446.2 kB / 381.5 MB, free: 14.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.959e-05/0.3043, allocations: 33.7 kB / 381.5 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000288/0.3046, allocations: 350.3 kB / 381.9 MB, free: 13.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.3048, allocations: 145.9 kB / 382 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.615e-05/0.3048, allocations: 12 kB / 382 MB, free: 13.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.305, allocations: 326.8 kB / 382.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.3056, allocations: 173 kB / 382.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006515/0.3062, allocations: 307.8 kB / 382.8 MB, free: 12.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005952/0.3069, allocations: 207.9 kB / 383 MB, free: 12.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.815e-06/0.3069, allocations: 0 / 383 MB, free: 12.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001458/0.3083, allocations: 0.5201 MB / 383.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001703/0.3085, allocations: 202.1 kB / 383.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3086, allocations: 0 / 383.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.3086, allocations: 8 kB / 383.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/0.3092, allocations: 119.9 kB / 383.9 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.3093, allocations: 11.94 kB / 383.9 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/0.3097, allocations: 63.52 kB / 383.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.935e-05/0.3098, allocations: 20 kB / 384 MB, free: 11.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.056e-06/0.3098, allocations: 4 kB / 384 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001205/0.311, allocations: 471.7 kB / 384.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.016e-06/0.311, allocations: 4 kB / 384.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.894e-06/0.3111, allocations: 4 kB / 384.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.3116, allocations: 119.8 kB / 384.5 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.3117, allocations: 11.94 kB / 384.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002991/0.312, allocations: 51.58 kB / 384.6 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/0.3121, allocations: 24.03 kB / 384.6 MB, free: 10.81 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (63): * Single equations (assignments): 63 * 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.0003746/0.3124, allocations: 252.9 kB / 384.9 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.3126, allocations: 59.3 kB / 384.9 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.3128, allocations: 65.08 kB / 385 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.916e-06/0.3128, allocations: 4 kB / 385 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.943e-06/0.3128, allocations: 0 / 385 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.36e-06/0.3128, allocations: 3.984 kB / 385 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.3139, allocations: 0.5284 MB / 385.5 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.28e-06/0.3139, allocations: 4 kB / 385.5 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006364/0.3145, allocations: 91.89 kB / 385.6 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.654e-06/0.3146, allocations: 0 / 385.6 MB, free: 9.746 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.3146, allocations: 15.94 kB / 385.6 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.247e-06/0.3146, allocations: 4 kB / 385.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.986e-06/0.3146, allocations: 0 / 385.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001743/0.3164, allocations: 0.785 MB / 386.4 MB, free: 8.926 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000264/0.3167, allocations: 168.4 kB / 386.6 MB, free: 8.742 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.665e-05/0.3168, allocations: 8 kB / 386.6 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004297/0.3172, allocations: 31.94 kB / 386.6 MB, free: 8.703 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.3173, allocations: 31.95 kB / 386.7 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.831e-05/0.3174, allocations: 19.92 kB / 386.7 MB, free: 8.652 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004816/0.3179, allocations: 306.9 kB / 387 MB, free: 8.355 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.44e-07/0.3179, allocations: 4 kB / 387 MB, free: 8.352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009552/0.3189, allocations: 215.2 kB / 387.2 MB, free: 8.141 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x) * 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 (38): * Single equations (assignments): 38 * 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.0001622/0.319, allocations: 107.2 kB / 387.3 MB, free: 8.027 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.3209, allocations: 0.6535 MB / 388 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.46e-06/0.3209, allocations: 4 kB / 388 MB, free: 7.371 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000533/0.3214, allocations: 192 kB / 388.2 MB, free: 7.184 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009252/0.3224, allocations: 140.2 kB / 388.3 MB, free: 7.043 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.3253, allocations: 1.6 MB / 389.9 MB, free: 5.402 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006598/0.326, allocations: 0.8941 MB / 390.8 MB, free: 4.48 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.3262, allocations: 39.44 kB / 390.8 MB, free: 4.441 MB / 314.7 MB Notification: Performance of SimCode: time 2.01e-06/0.3263, allocations: 0 / 390.8 MB, free: 4.441 MB / 314.7 MB Notification: Performance of Templates: time 0.01299/0.3393, allocations: 6.534 MB / 397.4 MB, free: 13.91 MB / 330.7 MB