Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadModel(Modelica): time 1.876/1.876, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003336/0.0003337, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08989/0.09024, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002578/0.09287, allocations: 1.457 MB / 310.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.0943, allocations: 0.6128 MB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.744e-05/0.09442, allocations: 7.938 kB / 311.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.09454, allocations: 15.86 kB / 311.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000162/0.09471, allocations: 31.89 kB / 311.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.09503, allocations: 63.8 kB / 311.2 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.09529, allocations: 119.7 kB / 311.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001843/0.09548, allocations: 50.42 kB / 311.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.09564, allocations: 55.77 kB / 311.5 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.09581, allocations: 71.61 kB / 311.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.09586, allocations: 8 kB / 311.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.36e-05/0.09594, allocations: 11.98 kB / 311.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.914e-05/0.09601, allocations: 23.92 kB / 311.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.987e-05/0.09609, allocations: 57.58 kB / 311.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.09632, allocations: 123.7 kB / 311.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.09634, allocations: 0 / 311.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.09635, allocations: 0 / 311.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.09637, allocations: 4 kB / 311.8 MB, free: 13.62 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.001086/0.09746, allocations: 482.8 kB / 312.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.09752, allocations: 12.03 kB / 312.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.252e-05/0.0976, allocations: 23.72 kB / 312.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003715/0.09798, allocations: 242.6 kB / 312.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.09803, allocations: 8 kB / 312.5 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.09808, allocations: 16 kB / 312.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005776/0.09867, allocations: 205.5 kB / 312.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.0987, allocations: 4 kB / 312.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.09874, allocations: 15.97 kB / 312.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.272e-05/0.09877, allocations: 4 kB / 312.7 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005547/0.09933, allocations: 147.8 kB / 312.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.101, allocations: 0.7934 MB / 313.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.102, allocations: 202.7 kB / 313.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.423e-05/0.1021, allocations: 11.94 kB / 313.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003994/0.1025, allocations: 152.9 kB / 314 MB, free: 11.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.374e-06/0.1025, allocations: 0 / 314 MB, free: 11.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009479/0.1035, allocations: 257.2 kB / 314.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.1036, allocations: 89 kB / 314.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.1039, allocations: 222.8 kB / 314.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.1039, allocations: 29.7 kB / 314.6 MB, free: 10.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001211/0.1041, allocations: 136.5 kB / 314.8 MB, free: 10.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.975e-05/0.1041, allocations: 39.59 kB / 314.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.1042, allocations: 4 kB / 314.8 MB, free: 10.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1043, allocations: 330.8 kB / 315.1 MB, free: 10 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.1046, allocations: 67.95 kB / 315.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.105, allocations: 140.5 kB / 315.3 MB, free: 9.766 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.1053, allocations: 87.91 kB / 315.4 MB, free: 9.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1053, allocations: 0 / 315.4 MB, free: 9.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007521/0.1061, allocations: 249.3 kB / 315.7 MB, free: 9.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.1061, allocations: 8 kB / 315.7 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.1061, allocations: 4 kB / 315.7 MB, free: 9.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.1062, allocations: 7.922 kB / 315.7 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/0.1065, allocations: 39.92 kB / 315.7 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.1065, allocations: 4 kB / 315.7 MB, free: 9.367 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000288/0.1068, allocations: 51.77 kB / 315.8 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.1068, allocations: 12 kB / 315.8 MB, free: 9.305 MB / 266.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.000196/0.107, allocations: 148 kB / 315.9 MB, free: 9.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.1071, allocations: 15.81 kB / 315.9 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003683/0.1075, allocations: 131.3 kB / 316.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1075, allocations: 8 kB / 316.1 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1075, allocations: 0 / 316.1 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.1076, allocations: 96.92 kB / 316.2 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.045e-05/0.1077, allocations: 8.422 kB / 316.2 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.1079, allocations: 19.97 kB / 316.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.108, allocations: 19.97 kB / 316.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008989/0.109, allocations: 375.9 kB / 316.6 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007375/0.1097, allocations: 453.6 kB / 317 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002946/0.11, allocations: 79.94 kB / 317.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001771/0.1102, allocations: 144.6 kB / 317.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of Backend: time 8.22e-07/0.1102, allocations: 3.938 kB / 317.3 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00071/0.1109, allocations: 186.3 kB / 317.4 MB, free: 7.582 MB / 266.7 MB Notification: Performance of SimCode: time 0.00108/0.112, allocations: 0.8048 MB / 318.2 MB, free: 6.73 MB / 266.7 MB Notification: Performance of Templates: time 0.009441/0.1215, allocations: 1.974 MB / 320.2 MB, free: 4.762 MB / 266.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