Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sources.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.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sources") Notification: Performance of loadModel(ModelicaTest): time 2.203/2.203, allocations: 234.9 MB / 250.5 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004281/0.0004283, allocations: 8 kB / 314.3 MB, free: 9.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2896, allocations: 54.86 MB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Sources): time 0.003277/0.293, allocations: 2.081 MB / 371.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.2944, allocations: 0.7455 MB / 372 MB, free: 9.926 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.2945, allocations: 4 kB / 372 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.2947, allocations: 51.62 kB / 372.1 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.295, allocations: 103.7 kB / 372.2 MB, free: 9.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002772/0.2953, allocations: 71.91 kB / 372.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003835/0.2957, allocations: 263.3 kB / 372.5 MB, free: 9.441 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.296, allocations: 115.2 kB / 372.6 MB, free: 9.328 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.2962, allocations: 135.5 kB / 372.7 MB, free: 9.195 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002021/0.2964, allocations: 139.3 kB / 372.9 MB, free: 9.059 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.658e-05/0.2965, allocations: 20 kB / 372.9 MB, free: 9.039 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.81e-05/0.2966, allocations: 19.94 kB / 372.9 MB, free: 9.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.082e-05/0.2966, allocations: 59.75 kB / 373 MB, free: 8.961 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.725e-05/0.2968, allocations: 93.5 kB / 373.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.2972, allocations: 303.8 kB / 373.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.956e-06/0.2972, allocations: 0 / 373.4 MB, free: 8.566 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.182e-06/0.2972, allocations: 3.938 kB / 373.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.676e-06/0.2972, allocations: 0 / 373.4 MB, free: 8.562 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001088/0.2983, allocations: 0.6215 MB / 374 MB, free: 7.895 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.2984, allocations: 12.03 kB / 374 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.113e-05/0.2985, allocations: 43.44 kB / 374 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003746/0.2988, allocations: 263.5 kB / 374.3 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.608e-05/0.2989, allocations: 25 kB / 374.3 MB, free: 7.516 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.991e-05/0.299, allocations: 32 kB / 374.3 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008659/0.2998, allocations: 366.6 kB / 374.7 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.2999, allocations: 0 / 374.7 MB, free: 7.105 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.537e-05/0.2999, allocations: 23.92 kB / 374.7 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.3, allocations: 8 kB / 374.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008705/0.3008, allocations: 281 kB / 375 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.3036, allocations: 1.367 MB / 376.4 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006294/0.3042, allocations: 210.5 kB / 376.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.3043, allocations: 0 / 376.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.3043, allocations: 38.69 kB / 376.6 MB, free: 5.051 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 2.248e-06/0.3043, allocations: 0 / 376.6 MB, free: 5.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.00105/0.3054, allocations: 281.2 kB / 376.9 MB, free: 4.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.13e-05/0.3055, allocations: 132.7 kB / 377 MB, free: 4.609 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.306, allocations: 328.4 kB / 377.3 MB, free: 4.277 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.306, allocations: 25.7 kB / 377.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.3063, allocations: 286.1 kB / 377.6 MB, free: 3.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.916e-05/0.3064, allocations: 55.3 kB / 377.7 MB, free: 3.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.87e-05/0.3064, allocations: 4 kB / 377.7 MB, free: 3.902 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.3066, allocations: 330.8 kB / 378 MB, free: 3.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003148/0.3069, allocations: 92.38 kB / 378.1 MB, free: 3.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.3073, allocations: 188.1 kB / 378.3 MB, free: 3.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.3077, allocations: 103.9 kB / 378.4 MB, free: 3.156 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/0.3077, allocations: 0 / 378.4 MB, free: 3.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008838/0.3086, allocations: 305.2 kB / 378.7 MB, free: 2.852 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3086, allocations: 8 kB / 378.7 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3086, allocations: 4.25 kB / 378.7 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3087, allocations: 8 kB / 378.7 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005235/0.3092, allocations: 100.4 kB / 378.8 MB, free: 2.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/0.3092, allocations: 7.938 kB / 378.8 MB, free: 2.727 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.3096, allocations: 71.45 kB / 378.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.3096, allocations: 8 kB / 378.9 MB, free: 2.648 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (34): * Single equations (assignments): 34 * 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.0002117/0.3099, allocations: 145.8 kB / 379 MB, free: 2.496 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.31, allocations: 31.62 kB / 379.1 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.456e-05/0.3101, allocations: 34.41 kB / 379.1 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.412e-06/0.3101, allocations: 0 / 379.1 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.358e-06/0.3101, allocations: 4 kB / 379.1 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.577e-06/0.3102, allocations: 7.984 kB / 379.1 MB, free: 2.422 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001094/0.3113, allocations: 0.5876 MB / 379.7 MB, free: 1.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.964e-06/0.3113, allocations: 4.281 kB / 379.7 MB, free: 1.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.3116, allocations: 64.11 kB / 379.8 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.788e-06/0.3117, allocations: 4 kB / 379.8 MB, free: 1.691 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/0.3117, allocations: 15.94 kB / 379.8 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.381e-06/0.3117, allocations: 3.938 kB / 379.8 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.805e-06/0.3117, allocations: 4 kB / 379.8 MB, free: 1.668 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007335/0.3125, allocations: 419.8 kB / 380.2 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3126, allocations: 108.7 kB / 380.3 MB, free: 1.102 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.3127, allocations: 4 kB / 380.3 MB, free: 1.098 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.313, allocations: 27.94 kB / 380.4 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/0.3131, allocations: 15.97 kB / 380.4 MB, free: 1.055 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3131, allocations: 8 kB / 380.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003213/0.3134, allocations: 219.1 kB / 380.6 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.17e-07/0.3135, allocations: 0 / 380.6 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005502/0.314, allocations: 71.84 kB / 380.7 MB, free: 0.7656 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (15): * Single equations (assignments): 15 * 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.0001318/0.3142, allocations: 115.1 kB / 380.8 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007043/0.3149, allocations: 215.8 kB / 381 MB, free: 440 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.147e-06/0.3149, allocations: 0 / 381 MB, free: 440 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.3152, allocations: 88.58 kB / 381.1 MB, free: 352 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.3156, allocations: 21.44 kB / 381.1 MB, free: 332 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.3169, allocations: 0.6956 MB / 381.8 MB, free: 15.57 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.3174, allocations: 0.7791 MB / 382.6 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.3176, allocations: 27.42 kB / 382.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of SimCode: time 1.519e-06/0.3176, allocations: 0 / 382.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of Templates: time 0.006304/0.3239, allocations: 3.013 MB / 385.6 MB, free: 11.73 MB / 314.7 MB