Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.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: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004664/0.0004664, allocations: 8 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08017/0.08067, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002011/0.08273, allocations: 1.151 MB / 273.8 MB, free: 10.38 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.08407, allocations: 0.5384 MB / 274.3 MB, free: 9.836 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.022e-05/0.08415, allocations: 4 kB / 274.3 MB, free: 9.832 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 3.946e-05/0.0842, allocations: 3.938 kB / 274.3 MB, free: 9.828 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.531e-05/0.08429, allocations: 15.92 kB / 274.3 MB, free: 9.812 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000735/0.08504, allocations: 131.7 kB / 274.5 MB, free: 9.684 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.08516, allocations: 47.89 kB / 274.5 MB, free: 9.637 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.08528, allocations: 27.98 kB / 274.5 MB, free: 9.609 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.178e-05/0.08534, allocations: 23.92 kB / 274.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.223e-05/0.08542, allocations: 35.81 kB / 274.6 MB, free: 9.551 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.335e-05/0.08546, allocations: 4 kB / 274.6 MB, free: 9.547 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002208/0.08568, allocations: 75.94 kB / 274.7 MB, free: 9.473 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.514e-05/0.08574, allocations: 11.94 kB / 274.7 MB, free: 9.461 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.98e-05/0.08582, allocations: 45.62 kB / 274.7 MB, free: 9.41 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.08605, allocations: 103.8 kB / 274.8 MB, free: 9.309 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.08607, allocations: 0 / 274.8 MB, free: 9.309 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.08608, allocations: 4 kB / 274.8 MB, free: 9.305 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.0861, allocations: 0 / 274.8 MB, free: 9.305 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005335/0.08664, allocations: 494 kB / 275.3 MB, free: 8.75 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.08669, allocations: 8.031 kB / 275.3 MB, free: 8.742 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.591e-05/0.08676, allocations: 11.91 kB / 275.3 MB, free: 8.73 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.08692, allocations: 174.9 kB / 275.5 MB, free: 8.52 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.08696, allocations: 11.95 kB / 275.5 MB, free: 8.508 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.087, allocations: 8 kB / 275.5 MB, free: 8.5 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003053/0.08732, allocations: 101.5 kB / 275.6 MB, free: 8.395 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.08734, allocations: 4 kB / 275.6 MB, free: 8.391 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.08737, allocations: 4 kB / 275.6 MB, free: 8.387 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.08739, allocations: 0 / 275.6 MB, free: 8.387 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001571/0.08755, allocations: 55.95 kB / 275.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006249/0.08819, allocations: 336.6 kB / 276 MB, free: 7.953 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.0884, allocations: 78.55 kB / 276.1 MB, free: 7.867 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.08843, allocations: 0 / 276.1 MB, free: 7.867 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002903/0.08873, allocations: 154.8 kB / 276.2 MB, free: 7.691 MB / 234.7 MB Notification: Performance of pre-optimization done (n=11): time 2.635e-06/0.08874, allocations: 4 kB / 276.2 MB, free: 7.688 MB / 234.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007072/0.08946, allocations: 419.1 kB / 276.7 MB, free: 7.223 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.08959, allocations: 174.2 kB / 276.8 MB, free: 7.016 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.08974, allocations: 138 kB / 277 MB, free: 6.871 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.08978, allocations: 25.7 kB / 277 MB, free: 6.84 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/0.08988, allocations: 100.1 kB / 277.1 MB, free: 6.738 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.08992, allocations: 23.8 kB / 277.1 MB, free: 6.715 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.442e-05/0.08995, allocations: 8 kB / 277.1 MB, free: 6.707 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.09009, allocations: 322.8 kB / 277.4 MB, free: 6.383 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.09021, allocations: 31.98 kB / 277.5 MB, free: 6.352 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.378e-05/0.09031, allocations: 35.98 kB / 277.5 MB, free: 6.316 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.09049, allocations: 147.9 kB / 277.6 MB, free: 6.148 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.0905, allocations: 0 / 277.6 MB, free: 6.148 MB / 234.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004367/0.09095, allocations: 266.4 kB / 277.9 MB, free: 5.859 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.09107, allocations: 118.8 kB / 278 MB, free: 5.719 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.09108, allocations: 0 / 278 MB, free: 5.719 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.09111, allocations: 4 kB / 278 MB, free: 5.715 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.405e-05/0.09118, allocations: 3.984 kB / 278 MB, free: 5.711 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.0912, allocations: 0 / 278 MB, free: 5.711 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001337/0.09134, allocations: 15.91 kB / 278 MB, free: 5.695 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.09137, allocations: 4 kB / 278 MB, free: 5.691 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.000209/0.0916, allocations: 201.1 kB / 278.2 MB, free: 5.473 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.09164, allocations: 15.89 kB / 278.3 MB, free: 5.457 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.638e-05/0.09169, allocations: 8.375 kB / 278.3 MB, free: 5.445 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.0917, allocations: 0 / 278.3 MB, free: 5.445 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.09171, allocations: 4 kB / 278.3 MB, free: 5.441 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.025e-05/0.09178, allocations: 84.95 kB / 278.4 MB, free: 5.34 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.09184, allocations: 4 kB / 278.4 MB, free: 5.336 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.09197, allocations: 19.94 kB / 278.4 MB, free: 5.316 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.358e-05/0.09206, allocations: 11.98 kB / 278.4 MB, free: 5.305 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006553/0.09273, allocations: 435 kB / 278.8 MB, free: 4.836 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000579/0.09333, allocations: 422 kB / 279.2 MB, free: 4.395 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001731/0.09351, allocations: 75.97 kB / 279.3 MB, free: 4.32 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.316e-05/0.09362, allocations: 103.3 kB / 279.4 MB, free: 4.219 MB / 234.7 MB Notification: Performance of Backend: time 7.71e-07/0.09364, allocations: 0 / 279.4 MB, free: 4.219 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0007675/0.09441, allocations: 392.2 kB / 279.8 MB, free: 3.781 MB / 234.7 MB Notification: Performance of SimCode: time 0.0007576/0.09519, allocations: 0.7563 MB / 280.5 MB, free: 2.953 MB / 234.7 MB Notification: Performance of Templates: time 0.005847/0.1011, allocations: 1.454 MB / 282 MB, free: 1.5 MB / 234.7 MB "" Variables in the reference:time,Pre1.u,table1.y,table2.y Variables in the result:Pre1.pre_u_start,Pre1.u,table1.n,table1.startValue,table1.table[1],table1.table[2],table1.table[3],table1.table[4],table1.y,table2.n,table2.startValue,table2.table[1],table2.table[2],table2.table[3],table2.table[4],table2.y,time