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.001633/0.001633, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.436/2.436, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002408/0.002408, allocations: 59.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3953, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.006503/0.4018, allocations: 2.38 MB / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01088/0.4128, allocations: 0.74 MB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.413, allocations: 7.938 kB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002369/0.4133, allocations: 23.72 kB / 413.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.4136, allocations: 59.48 kB / 413.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006413/0.4142, allocations: 103.7 kB / 413.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000529/0.4148, allocations: 263.1 kB / 413.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.4152, allocations: 115 kB / 413.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004183/0.4156, allocations: 127.5 kB / 413.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.4159, allocations: 111.6 kB / 413.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.754e-05/0.416, allocations: 20 kB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.4162, allocations: 28 kB / 413.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.598e-05/0.4163, allocations: 55.77 kB / 413.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002086/0.4165, allocations: 115.5 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005381/0.4171, allocations: 300 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4171, allocations: 0 / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4171, allocations: 3.938 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.4171, allocations: 0 / 414.4 MB, free: 13.12 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.001602/0.4188, allocations: 0.6562 MB / 415 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.4188, allocations: 8.031 kB / 415 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003035/0.4191, allocations: 40.55 kB / 415.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005675/0.4197, allocations: 259.8 kB / 415.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001244/0.4199, allocations: 54.05 kB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.255e-05/0.42, allocations: 20.38 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.421, allocations: 256.3 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.421, allocations: 0 / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.62e-05/0.4211, allocations: 8 kB / 415.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.634e-05/0.4211, allocations: 7.984 kB / 415.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009983/0.4221, allocations: 204.3 kB / 415.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.4246, allocations: 0.7524 MB / 416.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.4257, allocations: 302.7 kB / 416.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008352/0.4266, allocations: 225 kB / 417.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.4266, allocations: 4 kB / 417.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009455/0.4276, allocations: 311.7 kB / 417.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 3.336e-06/0.4276, allocations: 0 / 417.4 MB, free: 9.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.002277/0.4299, allocations: 0.5746 MB / 418 MB, free: 9.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/0.4301, allocations: 207.9 kB / 418.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000296/0.4304, allocations: 183.4 kB / 418.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.886e-05/0.4305, allocations: 45.7 kB / 418.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.4307, allocations: 132.7 kB / 418.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/0.4308, allocations: 86.98 kB / 418.6 MB, free: 8.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.431, allocations: 62.03 kB / 418.7 MB, free: 8.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.4312, allocations: 338.8 kB / 419 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.4317, allocations: 108.6 kB / 419.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005502/0.4323, allocations: 171.3 kB / 419.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/0.4334, allocations: 413.3 kB / 419.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.4334, allocations: 4 kB / 419.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001388/0.4348, allocations: 444.4 kB / 420.2 MB, free: 6.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.435, allocations: 97.09 kB / 420.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.435, allocations: 7.922 kB / 420.3 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.813e-05/0.435, allocations: 4 kB / 420.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.4354, allocations: 35.92 kB / 420.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.4355, allocations: 0 / 420.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003692/0.4358, allocations: 39.77 kB / 420.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/0.4359, allocations: 8 kB / 420.3 MB, free: 6.699 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.0003841/0.4363, allocations: 240.9 kB / 420.6 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-05/0.4364, allocations: 27.72 kB / 420.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.907e-05/0.4365, allocations: 26.58 kB / 420.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.4365, allocations: 4 kB / 420.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.4365, allocations: 0 / 420.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.4366, allocations: 3.984 kB / 420.6 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00268/0.4393, allocations: 0.9357 MB / 421.6 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.4393, allocations: 4 kB / 421.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.4395, allocations: 28.02 kB / 421.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4396, allocations: 0 / 421.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.795e-05/0.4396, allocations: 12.17 kB / 421.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.4397, allocations: 0 / 421.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4397, allocations: 7.938 kB / 421.6 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.4415, allocations: 0.6125 MB / 422.2 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.4416, allocations: 100.8 kB / 422.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.4417, allocations: 19.92 kB / 422.4 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003933/0.4422, allocations: 23.98 kB / 422.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.4423, allocations: 19.97 kB / 422.4 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.649e-05/0.4424, allocations: 15.98 kB / 422.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.4426, allocations: 139.2 kB / 422.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4426, allocations: 0 / 422.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006971/0.4433, allocations: 75.94 kB / 422.6 MB, free: 4.277 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.0002437/0.4436, allocations: 128.9 kB / 422.7 MB, free: 4.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.4452, allocations: 0.5448 MB / 423.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4452, allocations: 0 / 423.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000992/0.4463, allocations: 397 kB / 423.7 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.4477, allocations: 146.8 kB / 423.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.4496, allocations: 0.5577 MB / 424.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.45, allocations: 0.7484 MB / 425.1 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.4502, allocations: 19.44 kB / 425.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4502, allocations: 0 / 425.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of Templates: time 0.01165/0.4619, allocations: 3.168 MB / 428.3 MB, free: 14.48 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/jenkins1/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/jenkins1/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