Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 2.071/2.071, allocations: 194.8 MB / 211.7 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003606/0.0003607, allocations: 8 kB / 264.5 MB, free: 12.97 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1107, allocations: 44.52 MB / 309.1 MB, free: 388 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004148/0.1149, allocations: 1.492 MB / 310.5 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002292/0.1172, allocations: 0.5855 MB / 311.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.1175, allocations: 4 kB / 311.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.1176, allocations: 15.86 kB / 311.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.1179, allocations: 39.88 kB / 311.2 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000437/0.1184, allocations: 51.83 kB / 311.2 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003883/0.1188, allocations: 107.7 kB / 311.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002698/0.1191, allocations: 53.64 kB / 311.4 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000219/0.1193, allocations: 55.77 kB / 311.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.1196, allocations: 63.62 kB / 311.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.1197, allocations: 4 kB / 311.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.1198, allocations: 12 kB / 311.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.1199, allocations: 27.89 kB / 311.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.12, allocations: 57.58 kB / 311.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.1204, allocations: 111.7 kB / 311.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1204, allocations: 0 / 311.7 MB, free: 13.68 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.33e-06/0.1204, allocations: 7.984 kB / 311.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.1205, allocations: 0 / 311.7 MB, free: 13.67 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001616/0.1221, allocations: 494.9 kB / 312.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.627e-05/0.1222, allocations: 16.02 kB / 312.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.1223, allocations: 15.81 kB / 312.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004979/0.1228, allocations: 226.6 kB / 312.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.189e-05/0.1229, allocations: 12.28 kB / 312.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.123, allocations: 12 kB / 312.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008194/0.1238, allocations: 210.8 kB / 312.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.1239, allocations: 0 / 312.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.1239, allocations: 4 kB / 312.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-05/0.124, allocations: 4 kB / 312.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008388/0.1248, allocations: 155.8 kB / 312.9 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/0.1274, allocations: 0.7935 MB / 313.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007835/0.1282, allocations: 161.1 kB / 313.8 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.766e-05/0.1284, allocations: 12.11 kB / 313.8 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006015/0.129, allocations: 149.2 kB / 314 MB, free: 11.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 4.899e-06/0.129, allocations: 0 / 314 MB, free: 11.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.001497/0.1305, allocations: 269.3 kB / 314.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/0.1307, allocations: 85.11 kB / 314.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000417/0.1311, allocations: 198.9 kB / 314.5 MB, free: 10.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.48e-05/0.1312, allocations: 33.7 kB / 314.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.1314, allocations: 140.1 kB / 314.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.196e-05/0.1315, allocations: 47.44 kB / 314.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.056e-05/0.1315, allocations: 0 / 314.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.1318, allocations: 334.8 kB / 315 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004362/0.1322, allocations: 75.95 kB / 315.1 MB, free: 10.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004842/0.1327, allocations: 136.4 kB / 315.3 MB, free: 9.867 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004401/0.1332, allocations: 83.91 kB / 315.3 MB, free: 9.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1332, allocations: 0 / 315.3 MB, free: 9.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001124/0.1344, allocations: 253.3 kB / 315.6 MB, free: 9.531 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.1344, allocations: 4 kB / 315.6 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.1345, allocations: 4 kB / 315.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.1345, allocations: 3.953 kB / 315.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004428/0.135, allocations: 35.92 kB / 315.6 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.826e-05/0.135, allocations: 4.703 kB / 315.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/0.1355, allocations: 39.94 kB / 315.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.1356, allocations: 8 kB / 315.7 MB, free: 9.434 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulsStart,booleanPulse1.pulsStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulsStart,booleanPulse2.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0002826/0.1359, allocations: 137.8 kB / 315.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.362e-05/0.1359, allocations: 19.72 kB / 315.8 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.1371, allocations: 226.9 kB / 316.1 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.1371, allocations: 4 kB / 316.1 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.1371, allocations: 3.953 kB / 316.1 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001132/0.1372, allocations: 92.86 kB / 316.2 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.036e-05/0.1373, allocations: 3.984 kB / 316.2 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003372/0.1377, allocations: 28.09 kB / 316.2 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.1378, allocations: 19.91 kB / 316.2 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001293/0.1391, allocations: 376.1 kB / 316.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.00101/0.1402, allocations: 465.6 kB / 317 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003952/0.1406, allocations: 75.95 kB / 317.1 MB, free: 7.949 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002919/0.1409, allocations: 144.6 kB / 317.2 MB, free: 7.809 MB / 266.7 MB Notification: Performance of Backend: time 1.122e-06/0.1409, allocations: 0 / 317.2 MB, free: 7.809 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.1421, allocations: 198.4 kB / 317.4 MB, free: 7.609 MB / 266.7 MB Notification: Performance of SimCode: time 0.001732/0.1438, allocations: 0.8233 MB / 318.3 MB, free: 6.742 MB / 266.7 MB Notification: Performance of Templates: time 0.01199/0.1559, allocations: 2.166 MB / 320.4 MB, free: 4.594 MB / 266.7 MB "" Variables in the reference:time,multiSwitch.u[1],multiSwitch.u[2] Variables in the result:add.k[1],add.k[2],add.significantDigits,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,linearDependency1.k1,linearDependency1.k2,linearDependency1.y0,multiSwitch.precision,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.y_default,product.significantDigits,product.u[2],showValue.significantDigits,showValue1.significantDigits,showValue3.significantDigits,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time