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.001048/0.001048, allocations: 92.28 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 206.3 kB / 18.29 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.632/1.632, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003451, allocations: 8 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1777, allocations: 51.52 MB / 359.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003052/0.1808, allocations: 2.065 MB / 361.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1823, allocations: 0.7402 MB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.1824, allocations: 3.938 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.1826, allocations: 23.84 kB / 362.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.1827, allocations: 55.55 kB / 362.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003809/0.1831, allocations: 79.91 kB / 362.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002821/0.1834, allocations: 239 kB / 362.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002414/0.1836, allocations: 102.9 kB / 362.5 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.1839, allocations: 111.5 kB / 362.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.1841, allocations: 91.59 kB / 362.7 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.1841, allocations: 12 kB / 362.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.239e-05/0.1842, allocations: 12 kB / 362.8 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.117e-05/0.1842, allocations: 43.78 kB / 362.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.1844, allocations: 133.1 kB / 362.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.1847, allocations: 255.3 kB / 363.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1847, allocations: 11.94 kB / 363.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1847, allocations: 0 / 363.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1847, allocations: 0 / 363.2 MB, free: 9.305 MB / 302.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.00104/0.1858, allocations: 0.6404 MB / 363.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1858, allocations: 16.02 kB / 363.9 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.186, allocations: 32.66 kB / 363.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.1864, allocations: 243.9 kB / 364.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.002e-05/0.1865, allocations: 50.27 kB / 364.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.1865, allocations: 20.38 kB / 364.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/0.1871, allocations: 272 kB / 364.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1872, allocations: 0 / 364.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.971e-05/0.1872, allocations: 8 kB / 364.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.1872, allocations: 4 kB / 364.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000493/0.1877, allocations: 220.2 kB / 364.7 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.1891, allocations: 0.768 MB / 365.5 MB, free: 6.863 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005961/0.1897, allocations: 310.5 kB / 365.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004358/0.1901, allocations: 233 kB / 366 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.1901, allocations: 4 kB / 366 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005414/0.1907, allocations: 324.2 kB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.433e-06/0.1907, allocations: 0 / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001206/0.1919, allocations: 0.5909 MB / 366.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/0.1921, allocations: 203.9 kB / 367.1 MB, free: 5.117 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.1923, allocations: 182.6 kB / 367.3 MB, free: 4.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.1923, allocations: 41.69 kB / 367.3 MB, free: 4.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1924, allocations: 140.8 kB / 367.5 MB, free: 4.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.799e-05/0.1925, allocations: 71.02 kB / 367.5 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-05/0.1926, allocations: 45.69 kB / 367.6 MB, free: 4.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1927, allocations: 334.8 kB / 367.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.193, allocations: 112.6 kB / 368 MB, free: 4.164 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003051/0.1933, allocations: 187.2 kB / 368.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005759/0.1939, allocations: 420.4 kB / 368.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1939, allocations: 0 / 368.6 MB, free: 3.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007216/0.1946, allocations: 454.2 kB / 369 MB, free: 3.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.003e-05/0.1947, allocations: 93.09 kB / 369.1 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1947, allocations: 3.938 kB / 369.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1948, allocations: 4 kB / 369.1 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002078/0.195, allocations: 43.92 kB / 369.2 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.195, allocations: 7.938 kB / 369.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001882/0.1952, allocations: 39.83 kB / 369.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.1952, allocations: 19.98 kB / 369.2 MB, free: 2.809 MB / 302.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.0002252/0.1955, allocations: 235.7 kB / 369.5 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.1955, allocations: 19.81 kB / 369.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.041e-05/0.1956, allocations: 34.58 kB / 369.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.84e-06/0.1956, allocations: 4 kB / 369.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1956, allocations: 0 / 369.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.1956, allocations: 0 / 369.5 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.1972, allocations: 0.9513 MB / 370.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1972, allocations: 0 / 370.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.1974, allocations: 31.92 kB / 370.5 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1974, allocations: 192 / 370.5 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.1974, allocations: 7.984 kB / 370.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1974, allocations: 7.938 kB / 370.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1974, allocations: 0 / 370.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009975/0.1984, allocations: 0.6184 MB / 371.2 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.017e-05/0.1985, allocations: 116.7 kB / 371.3 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.1986, allocations: 12 kB / 371.3 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.1988, allocations: 27.97 kB / 371.3 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.935e-05/0.1989, allocations: 23.97 kB / 371.3 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.83e-05/0.199, allocations: 8 kB / 371.3 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000117/0.1991, allocations: 143.1 kB / 371.5 MB, free: 444 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1991, allocations: 4 kB / 371.5 MB, free: 440 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004007/0.1995, allocations: 79.84 kB / 371.6 MB, free: 360 kB / 302.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.0001952/0.1997, allocations: 121 kB / 371.7 MB, free: 228 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2243/0.424, allocations: 0.5453 MB / 372.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.4241, allocations: 0 / 372.2 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007543/0.4249, allocations: 409.2 kB / 372.6 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009038/0.4258, allocations: 127.3 kB / 372.7 MB, free: 19.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.427, allocations: 0.6248 MB / 373.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.4272, allocations: 0.7512 MB / 374.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001952/0.4274, allocations: 57.23 kB / 374.2 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.494e-05/0.4275, allocations: 21.67 kB / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4275, allocations: 0 / 374.2 MB, free: 18.33 MB / 302.1 MB Notification: Performance of Templates: time 0.01131/0.4388, allocations: 3.99 MB / 378.2 MB, free: 18.11 MB / 302.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