Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.197/1.197, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009223/0.0009224, allocations: 106.3 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009502/0.0009503, allocations: 43.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1944, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002826/0.1972, allocations: 2.389 MB / 376.2 MB, free: 43.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000858/0.1981, allocations: 0.7128 MB / 376.9 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.708e-05/0.1982, allocations: 2.375 kB / 376.9 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.1983, allocations: 26.03 kB / 376.9 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.267e-05/0.1984, allocations: 50.23 kB / 377 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.1987, allocations: 78.02 kB / 377.1 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.1989, allocations: 243.9 kB / 377.3 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1991, allocations: 107 kB / 377.4 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001488/0.1992, allocations: 107.7 kB / 377.5 MB, free: 42.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.1993, allocations: 117.1 kB / 377.6 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.1994, allocations: 14.53 kB / 377.6 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.251e-05/0.1994, allocations: 15.16 kB / 377.7 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.1995, allocations: 42.75 kB / 377.7 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1996, allocations: 112.2 kB / 377.8 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.1998, allocations: 265 kB / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1998, allocations: 0 / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1998, allocations: 5.188 kB / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1998, allocations: 4 kB / 378.1 MB, free: 42.58 MB / 298.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.0008038/0.2007, allocations: 0.6623 MB / 378.7 MB, free: 41.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.2007, allocations: 13.89 kB / 378.8 MB, free: 41.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.03e-05/0.2008, allocations: 27.06 kB / 378.8 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/0.201, allocations: 242.8 kB / 379 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.201, allocations: 53.73 kB / 379.1 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.2011, allocations: 17.12 kB / 379.1 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.2016, allocations: 255.3 kB / 379.3 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2016, allocations: 3.938 kB / 379.3 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.2016, allocations: 10.19 kB / 379.4 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.2016, allocations: 5.312 kB / 379.4 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004384/0.2021, allocations: 202.7 kB / 379.6 MB, free: 41.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.2031, allocations: 0.762 MB / 380.3 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.2036, allocations: 286 kB / 380.6 MB, free: 40.61 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003714/0.204, allocations: 233.5 kB / 380.8 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.204, allocations: 2.375 kB / 380.8 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004395/0.2045, allocations: 312.3 kB / 381.1 MB, free: 40.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.492e-06/0.2045, allocations: 3.938 kB / 381.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.001058/0.2056, allocations: 0.5712 MB / 381.7 MB, free: 39.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/0.2056, allocations: 200.7 kB / 381.9 MB, free: 39.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.2058, allocations: 186.4 kB / 382.1 MB, free: 39.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.2058, allocations: 39.69 kB / 382.1 MB, free: 39.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.2059, allocations: 129.5 kB / 382.2 MB, free: 39.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.754e-05/0.2059, allocations: 85.02 kB / 382.3 MB, free: 39.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.311e-05/0.206, allocations: 73.14 kB / 382.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.981e-05/0.2061, allocations: 332.7 kB / 382.7 MB, free: 38.97 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.2063, allocations: 109.5 kB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.2065, allocations: 174.9 kB / 383 MB, free: 38.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004363/0.207, allocations: 410.5 kB / 383.4 MB, free: 38.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.207, allocations: 1.125 kB / 383.4 MB, free: 38.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006086/0.2076, allocations: 438.4 kB / 383.8 MB, free: 38.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.114e-05/0.2077, allocations: 93.12 kB / 383.9 MB, free: 38.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2077, allocations: 5.219 kB / 383.9 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2077, allocations: 14.73 kB / 383.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.2079, allocations: 43.17 kB / 384 MB, free: 38.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.2079, allocations: 7.172 kB / 384 MB, free: 38.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.2081, allocations: 34.66 kB / 384 MB, free: 38.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.392e-05/0.2081, allocations: 17.39 kB / 384 MB, free: 38.05 MB / 298.7 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.0001968/0.2083, allocations: 233.7 kB / 384.3 MB, free: 37.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.524e-05/0.2084, allocations: 24.53 kB / 384.3 MB, free: 37.83 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.2084, allocations: 30.05 kB / 384.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2084, allocations: 2.219 kB / 384.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/0.2085, allocations: 1.094 kB / 384.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2085, allocations: 0 / 384.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.2096, allocations: 0.9297 MB / 385.3 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.2096, allocations: 0 / 385.3 MB, free: 37.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.2098, allocations: 29.05 kB / 385.3 MB, free: 37.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2098, allocations: 1.281 kB / 385.3 MB, free: 37.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.2098, allocations: 12.27 kB / 385.3 MB, free: 37.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2098, allocations: 2.281 kB / 385.3 MB, free: 37.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.2098, allocations: 192 / 385.3 MB, free: 37.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001204/0.211, allocations: 1.373 MB / 386.7 MB, free: 36.01 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.2111, allocations: 99.61 kB / 386.8 MB, free: 35.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.335e-05/0.2111, allocations: 22.17 kB / 386.8 MB, free: 35.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.2113, allocations: 24.23 kB / 386.8 MB, free: 35.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.303e-05/0.2114, allocations: 23.97 kB / 386.8 MB, free: 35.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.2115, allocations: 12 kB / 386.9 MB, free: 35.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.522e-05/0.2115, allocations: 127.2 kB / 387 MB, free: 35.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2115, allocations: 0 / 387 MB, free: 35.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003862/0.2119, allocations: 75.84 kB / 387.1 MB, free: 35.64 MB / 298.7 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.00012/0.2121, allocations: 140.9 kB / 387.2 MB, free: 35.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006213/0.2127, allocations: 0.537 MB / 387.7 MB, free: 34.92 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2127, allocations: 0 / 387.7 MB, free: 34.92 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003584/0.2131, allocations: 405.9 kB / 388.1 MB, free: 34.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006216/0.2137, allocations: 135.9 kB / 388.3 MB, free: 34.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008915/0.2146, allocations: 0.8098 MB / 389.1 MB, free: 33.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.2148, allocations: 0.7564 MB / 389.8 MB, free: 32.74 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001246/0.2149, allocations: 45.91 kB / 389.9 MB, free: 32.7 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.93e-05/0.2149, allocations: 23.44 kB / 389.9 MB, free: 32.68 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2149, allocations: 4 kB / 389.9 MB, free: 32.67 MB / 298.7 MB Notification: Performance of Templates: time 0.005669/0.2206, allocations: 4.151 MB / 394 MB, free: 28.54 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches