Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001361, allocations: 117.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001679/0.001679, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3953, allocations: 50.54 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004839/0.4002, allocations: 2.383 MB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.4019, allocations: 0.74 MB / 412.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.4021, allocations: 0 / 412.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.4023, allocations: 31.72 kB / 412.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.4025, allocations: 59.42 kB / 412.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004222/0.4029, allocations: 103.8 kB / 412.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003566/0.4033, allocations: 271 kB / 412.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002559/0.4035, allocations: 111 kB / 412.9 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000263/0.4038, allocations: 123.6 kB / 413.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000171/0.404, allocations: 111.6 kB / 413.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.045e-05/0.4041, allocations: 24 kB / 413.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.504e-05/0.4042, allocations: 24 kB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.452e-05/0.4043, allocations: 63.72 kB / 413.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.4044, allocations: 119.4 kB / 413.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004632/0.4049, allocations: 286.7 kB / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.4049, allocations: 0 / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4049, allocations: 0 / 413.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.4049, allocations: 0 / 413.7 MB, free: 13.18 MB / 334.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.001345/0.4063, allocations: 0.6754 MB / 414.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.4063, allocations: 12.03 kB / 414.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002142/0.4066, allocations: 36.75 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004439/0.407, allocations: 248 kB / 414.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.825e-05/0.4071, allocations: 62.03 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.4072, allocations: 16.38 kB / 414.7 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006232/0.4078, allocations: 264.3 kB / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.4078, allocations: 0 / 415 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.315e-05/0.4079, allocations: 4 kB / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.4079, allocations: 4 kB / 415 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.4084, allocations: 204.2 kB / 415.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.4098, allocations: 0.7603 MB / 415.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006704/0.4105, allocations: 295.2 kB / 416.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005086/0.411, allocations: 232.2 kB / 416.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.4111, allocations: 3.938 kB / 416.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006759/0.4117, allocations: 312.8 kB / 416.8 MB, free: 9.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 3.487e-06/0.4118, allocations: 0 / 416.8 MB, free: 9.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.00143/0.4132, allocations: 0.575 MB / 417.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000242/0.4135, allocations: 207.9 kB / 417.5 MB, free: 9.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.4137, allocations: 183.4 kB / 417.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.4138, allocations: 41.69 kB / 417.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.4139, allocations: 132.9 kB / 417.9 MB, free: 8.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.414, allocations: 83.33 kB / 418 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.4142, allocations: 73.95 kB / 418 MB, free: 8.492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002326/0.4144, allocations: 334.8 kB / 418.4 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002781/0.4147, allocations: 108.6 kB / 418.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003571/0.4151, allocations: 183.2 kB / 418.7 MB, free: 7.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.4157, allocations: 405.5 kB / 419.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.4157, allocations: 0 / 419.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008691/0.4166, allocations: 441.7 kB / 419.5 MB, free: 6.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.4167, allocations: 99.91 kB / 419.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.4168, allocations: 3.938 kB / 419.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.429e-05/0.4168, allocations: 8.094 kB / 419.6 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002386/0.417, allocations: 35.92 kB / 419.6 MB, free: 6.789 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/0.4171, allocations: 11.92 kB / 419.6 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.4173, allocations: 31.84 kB / 419.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.4174, allocations: 15.98 kB / 419.7 MB, free: 6.73 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.0003734/0.4177, allocations: 240.8 kB / 419.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.4178, allocations: 27.86 kB / 419.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.272e-05/0.4179, allocations: 26.58 kB / 420 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.4179, allocations: 4 kB / 420 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4179, allocations: 0 / 420 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4179, allocations: 0 / 420 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.4196, allocations: 0.9357 MB / 420.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4196, allocations: 0 / 420.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.4198, allocations: 23.92 kB / 420.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.4198, allocations: 0 / 420.9 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.469e-05/0.4198, allocations: 15.98 kB / 421 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.4199, allocations: 0 / 421 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4199, allocations: 4.031 kB / 421 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009951/0.4209, allocations: 0.6049 MB / 421.6 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.421, allocations: 108.8 kB / 421.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.206e-05/0.421, allocations: 23.98 kB / 421.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.4212, allocations: 19.98 kB / 421.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.4214, allocations: 31.89 kB / 421.7 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.4214, allocations: 12 kB / 421.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001943/0.4216, allocations: 135.2 kB / 421.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4216, allocations: 0 / 421.9 MB, free: 4.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003824/0.422, allocations: 67.98 kB / 422 MB, free: 4.324 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.0002303/0.4222, allocations: 144.6 kB / 422.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009435/0.4232, allocations: 0.5413 MB / 422.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4232, allocations: 0 / 422.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005529/0.4238, allocations: 397 kB / 423 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.4245, allocations: 143.1 kB / 423.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.4255, allocations: 0.5325 MB / 423.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4259, allocations: 0.7484 MB / 424.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001763/0.4261, allocations: 49.89 kB / 424.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.184e-05/0.4262, allocations: 23.44 kB / 424.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4262, allocations: 0 / 424.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of Templates: time 0.01015/0.4364, allocations: 4.291 MB / 428.8 MB, free: 13.4 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches