Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 107.6 kB / 17.06 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 192 kB / 18 MB, free: 4.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 47.94 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4336/0.4351, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.005955/0.4412, allocations: 2.369 MB / 403.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.443, allocations: 0.6661 MB / 403.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.4432, allocations: 7.938 kB / 403.8 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.4434, allocations: 31.66 kB / 403.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.4436, allocations: 59.48 kB / 403.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/0.4441, allocations: 91.75 kB / 403.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004695/0.4446, allocations: 259.1 kB / 404.2 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003544/0.4449, allocations: 118.9 kB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002951/0.4453, allocations: 119.6 kB / 404.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002308/0.4455, allocations: 115.5 kB / 404.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.4456, allocations: 24 kB / 404.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.21e-05/0.4456, allocations: 24 kB / 404.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.4457, allocations: 43.84 kB / 404.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.446, allocations: 123.4 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004649/0.4464, allocations: 284.1 kB / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4465, allocations: 3.984 kB / 405 MB, free: 4.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4465, allocations: 0 / 405 MB, free: 4.555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.467e-06/0.4465, allocations: 4 kB / 405 MB, free: 4.551 MB / 318.1 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.001466/0.448, allocations: 0.66 MB / 405.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.316e-05/0.448, allocations: 8.031 kB / 405.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.4482, allocations: 28.66 kB / 405.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.4486, allocations: 241.2 kB / 406 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.4487, allocations: 54.25 kB / 406 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/0.4488, allocations: 20.38 kB / 406 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008047/0.4496, allocations: 256.2 kB / 406.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.4497, allocations: 0 / 406.3 MB, free: 3.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.173e-05/0.4497, allocations: 11.98 kB / 406.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.4497, allocations: 4 kB / 406.3 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006925/0.4504, allocations: 204.3 kB / 406.5 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001861/0.4523, allocations: 0.7522 MB / 407.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008517/0.4532, allocations: 300.7 kB / 407.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/0.4537, allocations: 229.1 kB / 407.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.4538, allocations: 7.953 kB / 407.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006777/0.4545, allocations: 313.1 kB / 408.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.004e-06/0.4545, allocations: 0 / 408.1 MB, free: 1.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001549/0.4561, allocations: 0.567 MB / 408.7 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.4562, allocations: 207.8 kB / 408.9 MB, free: 452 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002176/0.4565, allocations: 187 kB / 409 MB, free: 256 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.604e-05/0.4565, allocations: 37.7 kB / 409.1 MB, free: 212 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.4566, allocations: 136.7 kB / 409.2 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.4568, allocations: 79.16 kB / 409.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.4569, allocations: 70.02 kB / 409.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4571, allocations: 330.8 kB / 409.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/0.4574, allocations: 112.6 kB / 409.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003746/0.4578, allocations: 171.3 kB / 410 MB, free: 15.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007631/0.4586, allocations: 411.7 kB / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4586, allocations: 0 / 410.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009708/0.4596, allocations: 449.2 kB / 410.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.139e-05/0.4597, allocations: 93.09 kB / 410.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.4597, allocations: 7.938 kB / 410.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.4598, allocations: 0 / 410.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.46, allocations: 39.92 kB / 410.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.357e-05/0.4601, allocations: 4 kB / 410.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.4603, allocations: 39.67 kB / 411 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.4604, allocations: 16.03 kB / 411 MB, free: 14.15 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002973/0.4607, allocations: 236.8 kB / 411.2 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.553e-05/0.4607, allocations: 23.81 kB / 411.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.054e-05/0.4608, allocations: 30.58 kB / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.4608, allocations: 0 / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.4608, allocations: 0 / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4609, allocations: 0 / 411.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.4627, allocations: 0.9355 MB / 412.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.4628, allocations: 0 / 412.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.4629, allocations: 35.95 kB / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.4629, allocations: 0 / 412.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.125e-05/0.463, allocations: 11.98 kB / 412.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.624e-06/0.463, allocations: 0 / 412.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.463, allocations: 0 / 412.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.4643, allocations: 0.6164 MB / 412.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.4644, allocations: 104.8 kB / 413 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/0.4645, allocations: 16 kB / 413 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.4648, allocations: 15.98 kB / 413 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.465, allocations: 27.97 kB / 413 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.909e-05/0.465, allocations: 11.98 kB / 413.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.4652, allocations: 131.2 kB / 413.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4652, allocations: 0 / 413.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004558/0.4657, allocations: 79.84 kB / 413.3 MB, free: 11.74 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,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,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002036/0.4659, allocations: 132.9 kB / 413.4 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008891/0.4668, allocations: 0.5412 MB / 413.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4668, allocations: 0 / 413.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005162/0.4673, allocations: 406.4 kB / 414.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007206/0.468, allocations: 146.6 kB / 414.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.4695, allocations: 0.5288 MB / 415 MB, free: 9.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.4699, allocations: 0.7445 MB / 415.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.4702, allocations: 49.89 kB / 415.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.287e-05/0.4703, allocations: 23.44 kB / 415.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.4703, allocations: 0 / 415.8 MB, free: 9.066 MB / 334.1 MB Notification: Performance of Templates: time 0.01156/0.4818, allocations: 4.28 MB / 420.1 MB, free: 4.852 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches