Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.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.1_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003484, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07812/0.07849, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003207/0.08176, allocations: 1.899 MB / 274.5 MB, free: 9.617 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001609/0.08342, allocations: 0.6707 MB / 275.2 MB, free: 8.945 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.08359, allocations: 7.938 kB / 275.2 MB, free: 8.938 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001276/0.08373, allocations: 19.83 kB / 275.2 MB, free: 8.918 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.08391, allocations: 63.81 kB / 275.3 MB, free: 8.855 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.08425, allocations: 63.8 kB / 275.4 MB, free: 8.793 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003501/0.08462, allocations: 171.7 kB / 275.5 MB, free: 8.625 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.08488, allocations: 88.64 kB / 275.6 MB, free: 8.539 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.08516, allocations: 115.5 kB / 275.7 MB, free: 8.426 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.08538, allocations: 91.59 kB / 275.8 MB, free: 8.336 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.525e-05/0.08545, allocations: 12 kB / 275.8 MB, free: 8.324 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.08552, allocations: 8 kB / 275.8 MB, free: 8.316 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.0856, allocations: 39.84 kB / 275.9 MB, free: 8.277 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.562e-05/0.0857, allocations: 73.55 kB / 275.9 MB, free: 8.199 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003143/0.08603, allocations: 207.7 kB / 276.1 MB, free: 7.996 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.08604, allocations: 0 / 276.1 MB, free: 7.996 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.08605, allocations: 0 / 276.1 MB, free: 7.996 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.08607, allocations: 0 / 276.1 MB, free: 7.996 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001238/0.08732, allocations: 0.6036 MB / 276.7 MB, free: 7.332 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.08737, allocations: 11.97 kB / 276.8 MB, free: 7.32 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.156e-05/0.08747, allocations: 31.72 kB / 276.8 MB, free: 7.289 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.08784, allocations: 238.6 kB / 277 MB, free: 7.016 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.947e-05/0.08795, allocations: 57.64 kB / 277.1 MB, free: 6.953 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.532e-05/0.08803, allocations: 20 kB / 277.1 MB, free: 6.934 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008727/0.08891, allocations: 259.9 kB / 277.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.08895, allocations: 8 kB / 277.4 MB, free: 6.664 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.682e-05/0.08899, allocations: 4 kB / 277.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.08902, allocations: 4 kB / 277.4 MB, free: 6.656 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000837/0.08987, allocations: 216.3 kB / 277.6 MB, free: 6.445 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.09183, allocations: 0.7681 MB / 278.3 MB, free: 5.613 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009584/0.0928, allocations: 311.3 kB / 278.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.09284, allocations: 0 / 278.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000788/0.09364, allocations: 325.5 kB / 279 MB, free: 4.953 MB / 234.7 MB Notification: Performance of pre-optimization done (n=31): time 2.154e-06/0.09366, allocations: 0 / 279 MB, free: 4.953 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.002023/0.09569, allocations: 0.7537 MB / 279.7 MB, free: 4.145 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.09585, allocations: 203.9 kB / 279.9 MB, free: 3.902 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.09612, allocations: 187.3 kB / 280.1 MB, free: 3.703 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.572e-05/0.09619, allocations: 45.69 kB / 280.1 MB, free: 3.652 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.09632, allocations: 132.8 kB / 280.3 MB, free: 3.52 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.482e-05/0.09643, allocations: 78.94 kB / 280.4 MB, free: 3.441 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-05/0.09647, allocations: 8 kB / 280.4 MB, free: 3.434 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.09663, allocations: 338.9 kB / 280.7 MB, free: 3.094 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004271/0.09707, allocations: 112.7 kB / 280.8 MB, free: 2.98 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000492/0.09757, allocations: 204.3 kB / 281 MB, free: 2.742 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004762/0.09807, allocations: 191.2 kB / 281.2 MB, free: 2.543 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.09809, allocations: 4 kB / 281.2 MB, free: 2.539 MB / 234.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001135/0.09923, allocations: 428.4 kB / 281.6 MB, free: 2.102 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.289e-05/0.09931, allocations: 64.5 kB / 281.7 MB, free: 2.027 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.09933, allocations: 4 kB / 281.7 MB, free: 2.023 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.09936, allocations: 4 kB / 281.7 MB, free: 2.02 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003162/0.09968, allocations: 47.84 kB / 281.7 MB, free: 1.973 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/0.09971, allocations: 4 kB / 281.7 MB, free: 1.969 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003387/0.1001, allocations: 47.7 kB / 281.8 MB, free: 1.922 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.568e-05/0.1001, allocations: 12 kB / 281.8 MB, free: 1.91 MB / 234.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.0003201/0.1004, allocations: 244 kB / 282 MB, free: 1.652 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.233e-05/0.1005, allocations: 23.81 kB / 282.1 MB, free: 1.629 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.358e-05/0.1006, allocations: 26.64 kB / 282.1 MB, free: 1.605 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1006, allocations: 0 / 282.1 MB, free: 1.605 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1006, allocations: 4 kB / 282.1 MB, free: 1.602 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001992/0.1008, allocations: 124.7 kB / 282.2 MB, free: 1.461 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.579e-05/0.1009, allocations: 15.98 kB / 282.2 MB, free: 1.445 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003326/0.1013, allocations: 27.98 kB / 282.2 MB, free: 1.418 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.1014, allocations: 36.02 kB / 282.3 MB, free: 1.383 MB / 234.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001851/0.1033, allocations: 0.7568 MB / 283 MB, free: 0.582 MB / 234.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001584/0.1049, allocations: 0.6902 MB / 283.7 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006825/0.1056, allocations: 255.8 kB / 284 MB, free: 15.61 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001558/0.1058, allocations: 135.2 kB / 284.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of Backend: time 2.905e-06/0.1058, allocations: 192 / 284.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000974/0.1068, allocations: 372.9 kB / 284.5 MB, free: 15.09 MB / 250.7 MB Notification: Performance of SimCode: time 0.001455/0.1082, allocations: 1.081 MB / 285.6 MB, free: 13.93 MB / 250.7 MB Notification: Performance of Templates: time 0.009834/0.1181, allocations: 2.99 MB / 288.5 MB, free: 10.96 MB / 250.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