Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.LogicalNetwork1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003499/0.00035, allocations: 15.92 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09241, allocations: 44.5 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001962/0.09442, allocations: 1.149 MB / 310.2 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.09565, allocations: 0.5545 MB / 310.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.384e-05/0.0957, allocations: 0 / 310.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.294e-05/0.09576, allocations: 7.922 kB / 310.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.794e-05/0.09583, allocations: 11.98 kB / 310.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006961/0.09654, allocations: 123.8 kB / 310.9 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.09666, allocations: 43.95 kB / 310.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.09677, allocations: 27.97 kB / 311 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.506e-05/0.09684, allocations: 31.84 kB / 311 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.083e-05/0.09692, allocations: 27.89 kB / 311 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.014e-05/0.09695, allocations: 4 kB / 311 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.09718, allocations: 87.81 kB / 311.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.616e-05/0.09724, allocations: 7.984 kB / 311.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.547e-05/0.0973, allocations: 45.64 kB / 311.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.09753, allocations: 107.8 kB / 311.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.09755, allocations: 0 / 311.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09756, allocations: 0 / 311.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09757, allocations: 0 / 311.3 MB, free: 14.13 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000535/0.09812, allocations: 486.1 kB / 311.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.09817, allocations: 12.03 kB / 311.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.215e-05/0.09823, allocations: 7.906 kB / 311.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.09839, allocations: 186.8 kB / 311.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.09843, allocations: 12 kB / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.09846, allocations: 4 kB / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.09873, allocations: 101.5 kB / 312.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.09876, allocations: 0 / 312.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.09878, allocations: 4 kB / 312.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.0988, allocations: 4 kB / 312.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.09896, allocations: 51.97 kB / 312.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005794/0.09955, allocations: 340.6 kB / 312.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.09975, allocations: 74.55 kB / 312.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.09978, allocations: 4.094 kB / 312.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002829/0.1001, allocations: 166.7 kB / 312.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 2.104e-06/0.1001, allocations: 0 / 312.7 MB, free: 12.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.000717/0.1008, allocations: 415.1 kB / 313.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1009, allocations: 166.2 kB / 313.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.1011, allocations: 138 kB / 313.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.1011, allocations: 29.7 kB / 313.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.114e-05/0.1012, allocations: 104 kB / 313.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.1013, allocations: 23.83 kB / 313.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.1013, allocations: 7.938 kB / 313.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1014, allocations: 322.8 kB / 313.9 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.281e-05/0.1015, allocations: 31.98 kB / 313.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.579e-05/0.1017, allocations: 43.83 kB / 313.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.1018, allocations: 142.8 kB / 314.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1018, allocations: 0 / 314.1 MB, free: 10.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004086/0.1023, allocations: 257 kB / 314.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.081e-05/0.1024, allocations: 122.8 kB / 314.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.1024, allocations: 0 / 314.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1024, allocations: 0 / 314.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.498e-05/0.1024, allocations: 11.89 kB / 314.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1025, allocations: 0 / 314.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.1026, allocations: 11.91 kB / 314.5 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.1026, allocations: 4 kB / 314.5 MB, free: 10.52 MB / 266.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.000194/0.1028, allocations: 197.2 kB / 314.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.936e-05/0.1029, allocations: 7.906 kB / 314.7 MB, free: 10.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.351e-05/0.1029, allocations: 12.38 kB / 314.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1029, allocations: 0 / 314.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1029, allocations: 0 / 314.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/0.103, allocations: 92.91 kB / 314.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.67e-05/0.103, allocations: 7.984 kB / 314.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.1032, allocations: 12 kB / 314.8 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.1033, allocations: 11.97 kB / 314.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005868/0.1039, allocations: 443 kB / 315.2 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005899/0.1045, allocations: 418 kB / 315.7 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001663/0.1046, allocations: 75.97 kB / 315.7 MB, free: 9.152 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.581e-05/0.1047, allocations: 99.27 kB / 315.8 MB, free: 9.055 MB / 266.7 MB Notification: Performance of Backend: time 1.011e-06/0.1047, allocations: 0 / 315.8 MB, free: 9.055 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007339/0.1055, allocations: 402.2 kB / 316.2 MB, free: 8.605 MB / 266.7 MB Notification: Performance of SimCode: time 0.0007252/0.1062, allocations: 0.7511 MB / 317 MB, free: 7.785 MB / 266.7 MB Notification: Performance of Templates: time 0.00547/0.1117, allocations: 1.45 MB / 318.4 MB, free: 6.336 MB / 266.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