Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadModel(Modelica): time 1.846/1.846, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003487, allocations: 12 kB / 233.8 MB, free: 2.398 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08096/0.08133, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002636/0.08402, allocations: 1.491 MB / 274.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.08544, allocations: 0.5694 MB / 274.7 MB, free: 9.457 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.08557, allocations: 0 / 274.7 MB, free: 9.457 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.0857, allocations: 23.84 kB / 274.7 MB, free: 9.434 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.08589, allocations: 35.88 kB / 274.7 MB, free: 9.398 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.08619, allocations: 51.83 kB / 274.8 MB, free: 9.348 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002424/0.08645, allocations: 111.8 kB / 274.9 MB, free: 9.238 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.08665, allocations: 52.28 kB / 274.9 MB, free: 9.188 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.0868, allocations: 59.64 kB / 275 MB, free: 9.129 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.08696, allocations: 59.64 kB / 275.1 MB, free: 9.07 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.08701, allocations: 8 kB / 275.1 MB, free: 9.062 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.269e-05/0.0871, allocations: 11.98 kB / 275.1 MB, free: 9.051 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.085e-05/0.08719, allocations: 31.84 kB / 275.1 MB, free: 9.02 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.936e-05/0.08729, allocations: 57.62 kB / 275.2 MB, free: 8.957 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.08752, allocations: 107.8 kB / 275.3 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.08754, allocations: 0 / 275.3 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.08755, allocations: 4 kB / 275.3 MB, free: 8.848 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.08757, allocations: 0 / 275.3 MB, free: 8.848 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001129/0.0887, allocations: 0.4911 MB / 275.8 MB, free: 8.305 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.08876, allocations: 8.031 kB / 275.8 MB, free: 8.297 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.406e-05/0.08884, allocations: 27.7 kB / 275.8 MB, free: 8.27 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.08919, allocations: 230.4 kB / 276 MB, free: 8.004 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.08923, allocations: 16.23 kB / 276 MB, free: 7.988 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.919e-05/0.08928, allocations: 12 kB / 276.1 MB, free: 7.977 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.08982, allocations: 214.8 kB / 276.3 MB, free: 7.75 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.08985, allocations: 4 kB / 276.3 MB, free: 7.746 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.08989, allocations: 4 kB / 276.3 MB, free: 7.742 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.613e-05/0.08992, allocations: 4 kB / 276.3 MB, free: 7.738 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005184/0.09045, allocations: 151.8 kB / 276.4 MB, free: 7.59 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001605/0.09207, allocations: 0.7897 MB / 277.2 MB, free: 6.738 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.09258, allocations: 165.1 kB / 277.4 MB, free: 6.559 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.134e-05/0.09265, allocations: 7.984 kB / 277.4 MB, free: 6.551 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.09305, allocations: 153 kB / 277.5 MB, free: 6.383 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 2.966e-06/0.09307, allocations: 0 / 277.5 MB, free: 6.383 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.000905/0.09398, allocations: 266 kB / 277.8 MB, free: 6.117 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.09406, allocations: 85.11 kB / 277.9 MB, free: 6.016 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002772/0.09434, allocations: 218.9 kB / 278.1 MB, free: 5.793 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.09439, allocations: 25.7 kB / 278.1 MB, free: 5.762 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.09452, allocations: 140.2 kB / 278.3 MB, free: 5.621 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.016e-05/0.0946, allocations: 47.34 kB / 278.3 MB, free: 5.574 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-05/0.09462, allocations: 8 kB / 278.3 MB, free: 5.566 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.09478, allocations: 330.8 kB / 278.6 MB, free: 5.234 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.09505, allocations: 79.81 kB / 278.7 MB, free: 5.156 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.0954, allocations: 126.2 kB / 278.8 MB, free: 5.012 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002877/0.0957, allocations: 87.95 kB / 278.9 MB, free: 4.926 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.09572, allocations: 0 / 278.9 MB, free: 4.926 MB / 234.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007133/0.09644, allocations: 245.3 kB / 279.2 MB, free: 4.68 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.09648, allocations: 7.984 kB / 279.2 MB, free: 4.672 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.0965, allocations: 4 kB / 279.2 MB, free: 4.668 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.09652, allocations: 4 kB / 279.2 MB, free: 4.664 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002928/0.09682, allocations: 32.03 kB / 279.2 MB, free: 4.633 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.09685, allocations: 7.938 kB / 279.2 MB, free: 4.625 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/0.09713, allocations: 43.94 kB / 279.3 MB, free: 4.582 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.605e-05/0.09717, allocations: 7.953 kB / 279.3 MB, free: 4.574 MB / 234.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.0001775/0.09736, allocations: 145.8 kB / 279.4 MB, free: 4.422 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.435e-05/0.09741, allocations: 19.8 kB / 279.4 MB, free: 4.402 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006947/0.09812, allocations: 230.8 kB / 279.7 MB, free: 4.176 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.09814, allocations: 0 / 279.7 MB, free: 4.176 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.09815, allocations: 4 kB / 279.7 MB, free: 4.172 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.09828, allocations: 100.9 kB / 279.8 MB, free: 4.055 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/0.09835, allocations: 11.95 kB / 279.8 MB, free: 4.043 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.09859, allocations: 23.97 kB / 279.8 MB, free: 4.02 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.119e-05/0.09869, allocations: 20.06 kB / 279.8 MB, free: 4 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008452/0.09955, allocations: 376 kB / 280.2 MB, free: 3.625 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000712/0.1003, allocations: 453.7 kB / 280.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002728/0.1006, allocations: 84.39 kB / 280.7 MB, free: 3.082 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001765/0.1008, allocations: 152.6 kB / 280.9 MB, free: 2.934 MB / 234.7 MB Notification: Performance of Backend: time 7.61e-07/0.1008, allocations: 0 / 280.9 MB, free: 2.934 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0007181/0.1015, allocations: 199.4 kB / 281 MB, free: 2.734 MB / 234.7 MB Notification: Performance of SimCode: time 0.001194/0.1027, allocations: 0.8281 MB / 281.9 MB, free: 1.859 MB / 234.7 MB Notification: Performance of Templates: time 0.007785/0.1105, allocations: 2.146 MB / 284 MB, free: 15.73 MB / 250.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