Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.y.1.|aD_Converter.y.2.|aD_Converter.y.3.|aD_Converter.y.4.|aD_Converter.y.5.|aD_Converter.y.6.|aD_Converter.y.7.|aD_Converter.z|dA_Converter.vout|dA_Converter.y|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 2.049/2.049, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003663, allocations: 15.94 kB / 264.6 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.09181, allocations: 44.52 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003229/0.09508, allocations: 1.912 MB / 311 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001553/0.09667, allocations: 0.6752 MB / 311.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001172/0.0968, allocations: 7.938 kB / 311.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.09694, allocations: 19.83 kB / 311.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001691/0.09712, allocations: 59.81 kB / 311.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003305/0.09746, allocations: 63.86 kB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.09782, allocations: 179.5 kB / 312 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.09807, allocations: 89.22 kB / 312.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002288/0.09831, allocations: 91.69 kB / 312.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.09854, allocations: 95.59 kB / 312.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.0986, allocations: 12 kB / 312.3 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.626e-05/0.09867, allocations: 12 kB / 312.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.988e-05/0.09875, allocations: 35.89 kB / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.905e-05/0.09886, allocations: 69.58 kB / 312.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003148/0.09918, allocations: 207.7 kB / 312.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.0992, allocations: 0 / 312.6 MB, free: 12.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09921, allocations: 7.938 kB / 312.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.09923, allocations: 0 / 312.6 MB, free: 12.8 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001343/0.1006, allocations: 0.5997 MB / 313.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1006, allocations: 8.031 kB / 313.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.836e-05/0.1008, allocations: 27.72 kB / 313.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.1011, allocations: 239.3 kB / 313.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.645e-05/0.1012, allocations: 49.69 kB / 313.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.1013, allocations: 24 kB / 313.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008833/0.1022, allocations: 268.1 kB / 313.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.1022, allocations: 0 / 313.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.1023, allocations: 12 kB / 313.8 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.1023, allocations: 4 kB / 313.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008347/0.1032, allocations: 216.2 kB / 314 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.1052, allocations: 0.7717 MB / 314.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009527/0.1062, allocations: 307.3 kB / 315.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1063, allocations: 4 kB / 315.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007899/0.1071, allocations: 333.3 kB / 315.4 MB, free: 9.758 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 2.645e-06/0.1071, allocations: 3.938 kB / 315.4 MB, free: 9.754 MB / 266.7 MB Notification: Performance of matching and sorting (n=31): time 0.002058/0.1092, allocations: 0.747 MB / 316.2 MB, free: 8.953 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.1093, allocations: 203.9 kB / 316.4 MB, free: 8.711 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.1096, allocations: 190.2 kB / 316.6 MB, free: 8.516 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.619e-05/0.1096, allocations: 41.69 kB / 316.6 MB, free: 8.469 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.1098, allocations: 128.8 kB / 316.7 MB, free: 8.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.1099, allocations: 78.98 kB / 316.8 MB, free: 8.262 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-05/0.1099, allocations: 12 kB / 316.8 MB, free: 8.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1101, allocations: 334.8 kB / 317.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.1105, allocations: 104.7 kB / 317.2 MB, free: 7.809 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.111, allocations: 216.3 kB / 317.4 MB, free: 7.559 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.1115, allocations: 187.3 kB / 317.6 MB, free: 7.363 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.1115, allocations: 4 kB / 317.6 MB, free: 7.359 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001143/0.1127, allocations: 424.3 kB / 318 MB, free: 6.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.568e-05/0.1128, allocations: 59.59 kB / 318.1 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1128, allocations: 4 kB / 318.1 MB, free: 6.852 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1128, allocations: 7.938 kB / 318.1 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.1131, allocations: 43.91 kB / 318.2 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.1132, allocations: 8 kB / 318.2 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003307/0.1135, allocations: 51.66 kB / 318.2 MB, free: 6.742 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.1136, allocations: 16 kB / 318.2 MB, free: 6.727 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],dA_Converter.x[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],dA_Converter.x[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],dA_Converter.x[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],dA_Converter.x[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],dA_Converter.x[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],dA_Converter.x[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0003477/0.1139, allocations: 236 kB / 318.5 MB, free: 6.473 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.549e-05/0.114, allocations: 23.81 kB / 318.5 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.732e-05/0.1141, allocations: 30.64 kB / 318.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1141, allocations: 3.984 kB / 318.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.1141, allocations: 0 / 318.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.548e-05/0.1142, allocations: 100.8 kB / 318.6 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.1143, allocations: 23.94 kB / 318.6 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.1146, allocations: 19.98 kB / 318.7 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.1148, allocations: 20.16 kB / 318.7 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001824/0.1166, allocations: 0.7701 MB / 319.5 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001527/0.1181, allocations: 0.697 MB / 320.1 MB, free: 4.691 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006569/0.1188, allocations: 251.9 kB / 320.4 MB, free: 4.445 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00017/0.119, allocations: 131.2 kB / 320.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of Backend: time 8.32e-07/0.119, allocations: 0 / 320.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000974/0.12, allocations: 368.9 kB / 320.9 MB, free: 3.922 MB / 266.7 MB Notification: Performance of SimCode: time 0.001452/0.1215, allocations: 1.06 MB / 321.9 MB, free: 2.797 MB / 266.7 MB Notification: Performance of Templates: time 0.01019/0.1317, allocations: 2.994 MB / 324.9 MB, free: 15.82 MB / 282.7 MB "" Variables in the reference:time,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.z,dA_Converter.vout,dA_Converter.y,pulse.T0,pulse.np Variables in the result:N,aD_Converter.N,aD_Converter.Rin,aD_Converter.VRefHigh,aD_Converter.VRefLow,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.z,dA_Converter.N,dA_Converter.Vref,dA_Converter.vout,dA_Converter.y,pulse.T0,pulse.np,pulse.nperiod,pulse.period,pulse.pulse,pulse.quiet,pulse.startTime,pulse.width,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,sineVoltage.V,sineVoltage.freqHz,sineVoltage.offset,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.startTime,time