Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00056/0.0005602, allocations: 8 kB / 233.9 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.09425, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002731/0.09703, allocations: 1.456 MB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.09866, allocations: 0.6044 MB / 274.7 MB, free: 9.465 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.09883, allocations: 0 / 274.7 MB, free: 9.465 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.09896, allocations: 19.8 kB / 274.7 MB, free: 9.445 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.09915, allocations: 35.88 kB / 274.7 MB, free: 9.41 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.0995, allocations: 59.86 kB / 274.8 MB, free: 9.352 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002505/0.09976, allocations: 115.8 kB / 274.9 MB, free: 9.238 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.09998, allocations: 62.33 kB / 275 MB, free: 9.176 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.1001, allocations: 63.64 kB / 275 MB, free: 9.113 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.1003, allocations: 67.69 kB / 275.1 MB, free: 9.047 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.1004, allocations: 4 kB / 275.1 MB, free: 9.043 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.467e-05/0.1005, allocations: 12 kB / 275.1 MB, free: 9.031 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.594e-05/0.1006, allocations: 39.83 kB / 275.1 MB, free: 8.992 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.919e-05/0.1006, allocations: 49.58 kB / 275.2 MB, free: 8.938 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.1009, allocations: 119.8 kB / 275.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.095e-06/0.1009, allocations: 0 / 275.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1009, allocations: 0 / 275.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1009, allocations: 0 / 275.3 MB, free: 8.82 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001178/0.1021, allocations: 498.7 kB / 275.8 MB, free: 8.285 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1022, allocations: 8.031 kB / 275.8 MB, free: 8.277 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.1022, allocations: 23.72 kB / 275.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.1026, allocations: 239.4 kB / 276.1 MB, free: 7.977 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/0.1027, allocations: 19.89 kB / 276.1 MB, free: 7.957 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.1027, allocations: 24 kB / 276.1 MB, free: 7.934 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006138/0.1034, allocations: 209 kB / 276.3 MB, free: 7.711 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.1034, allocations: 4 kB / 276.3 MB, free: 7.707 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.1034, allocations: 4 kB / 276.3 MB, free: 7.703 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.365e-05/0.1035, allocations: 15.98 kB / 276.3 MB, free: 7.688 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005556/0.104, allocations: 147.8 kB / 276.5 MB, free: 7.543 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.1057, allocations: 0.801 MB / 277.3 MB, free: 6.68 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.1068, allocations: 202.7 kB / 277.5 MB, free: 6.473 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.429e-05/0.1069, allocations: 8 kB / 277.5 MB, free: 6.465 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004261/0.1073, allocations: 152.9 kB / 277.6 MB, free: 6.297 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 2.925e-06/0.1073, allocations: 0 / 277.6 MB, free: 6.297 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.001019/0.1084, allocations: 249.3 kB / 277.9 MB, free: 6.047 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.805e-05/0.1084, allocations: 93.08 kB / 278 MB, free: 5.938 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.1088, allocations: 219 kB / 278.2 MB, free: 5.715 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.1089, allocations: 29.7 kB / 278.2 MB, free: 5.68 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.109, allocations: 144.4 kB / 278.4 MB, free: 5.535 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.409e-05/0.1091, allocations: 31.55 kB / 278.4 MB, free: 5.504 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.109e-05/0.1091, allocations: 11.94 kB / 278.4 MB, free: 5.492 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1093, allocations: 330.8 kB / 278.7 MB, free: 5.16 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.1096, allocations: 71.95 kB / 278.8 MB, free: 5.09 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.1099, allocations: 140.5 kB / 278.9 MB, free: 4.922 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003132/0.1102, allocations: 83.84 kB / 279 MB, free: 4.84 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1103, allocations: 0 / 279 MB, free: 4.84 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008177/0.1111, allocations: 257.2 kB / 279.3 MB, free: 4.582 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.1111, allocations: 5.094 kB / 279.3 MB, free: 4.578 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/0.1112, allocations: 8.234 kB / 279.3 MB, free: 4.57 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.441e-05/0.1112, allocations: 8 kB / 279.3 MB, free: 4.562 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.1115, allocations: 43.91 kB / 279.3 MB, free: 4.52 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.1116, allocations: 4 kB / 279.3 MB, free: 4.516 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.1119, allocations: 44.09 kB / 279.4 MB, free: 4.473 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.1119, allocations: 4 kB / 279.4 MB, free: 4.469 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002235/0.1121, allocations: 156 kB / 279.5 MB, free: 4.305 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.976e-05/0.1122, allocations: 15.81 kB / 279.5 MB, free: 4.289 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000421/0.1126, allocations: 138.9 kB / 279.7 MB, free: 4.152 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.1127, allocations: 0 / 279.7 MB, free: 4.152 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1127, allocations: 0 / 279.7 MB, free: 4.152 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.1128, allocations: 104.8 kB / 279.8 MB, free: 4.031 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.1129, allocations: 7.984 kB / 279.8 MB, free: 4.023 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000249/0.1131, allocations: 24.3 kB / 279.8 MB, free: 4 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.1133, allocations: 23.92 kB / 279.8 MB, free: 3.977 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001025/0.1143, allocations: 376 kB / 280.2 MB, free: 3.602 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001475/0.1158, allocations: 449.8 kB / 280.6 MB, free: 3.145 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003048/0.1162, allocations: 75.95 kB / 280.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.1164, allocations: 144.6 kB / 280.9 MB, free: 2.93 MB / 234.7 MB Notification: Performance of Backend: time 6.71e-07/0.1164, allocations: 0 / 280.9 MB, free: 2.93 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0008084/0.1172, allocations: 202.2 kB / 281.1 MB, free: 2.723 MB / 234.7 MB Notification: Performance of SimCode: time 0.001115/0.1183, allocations: 0.8087 MB / 281.9 MB, free: 1.867 MB / 234.7 MB Notification: Performance of Templates: time 0.007779/0.1261, allocations: 1.973 MB / 283.8 MB, free: 15.9 MB / 250.7 MB "" Variables in the reference:time,multiSwitch1.y,triggeredAdd.y Variables in the result:booleanPulse1.Twidth,booleanPulse1.period,booleanPulse1.startTime,booleanPulse1.width,booleanPulse2.Twidth,booleanPulse2.period,booleanPulse2.startTime,booleanPulse2.width,integerConstant.k,integerConstant.y,integerStep.height,integerStep.offset,integerStep.startTime,multiSwitch1.y,multiSwitch1.y_default,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sum.k[1],sum.k[2],sum.k[3],sum.u[3],time,triggeredAdd.u,triggeredAdd.y,triggeredAdd.y_start