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.00148/0.00148, allocations: 107.1 kB / 17.74 MB, free: 5.316 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.001427/0.001427, allocations: 188.2 kB / 18.67 MB, free: 4.395 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.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2473, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003617/0.251, allocations: 2.367 MB / 403.8 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.2523, allocations: 0.6661 MB / 404.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.2525, allocations: 0 / 404.4 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.2527, allocations: 31.66 kB / 404.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.2528, allocations: 63.48 kB / 404.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.2531, allocations: 87.7 kB / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003206/0.2535, allocations: 267 kB / 404.9 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.2537, allocations: 115 kB / 405 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.2539, allocations: 115.6 kB / 405.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.2541, allocations: 115.5 kB / 405.2 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.2542, allocations: 24 kB / 405.2 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.531e-05/0.2542, allocations: 20 kB / 405.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/0.2543, allocations: 51.84 kB / 405.3 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.2544, allocations: 131.3 kB / 405.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.2547, allocations: 276.2 kB / 405.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.2547, allocations: 7.938 kB / 405.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2547, allocations: 0 / 405.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.2548, allocations: 0 / 405.7 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.001017/0.2558, allocations: 0.6639 MB / 406.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.2558, allocations: 8.031 kB / 406.4 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.055e-05/0.2559, allocations: 24.66 kB / 406.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.2562, allocations: 249.1 kB / 406.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.027e-05/0.2563, allocations: 50.27 kB / 406.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.523e-05/0.2564, allocations: 16.38 kB / 406.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000564/0.2569, allocations: 260.3 kB / 407 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.257, allocations: 0 / 407 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.257, allocations: 12 kB / 407 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.257, allocations: 4 kB / 407 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004761/0.2575, allocations: 196.3 kB / 407.2 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001254/0.2588, allocations: 0.7561 MB / 407.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005656/0.2593, allocations: 303.2 kB / 408.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/0.2598, allocations: 222.8 kB / 408.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.2598, allocations: 7.953 kB / 408.5 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004902/0.2603, allocations: 313.1 kB / 408.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.2603, allocations: 0 / 408.8 MB, free: 1.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001171/0.2615, allocations: 0.5786 MB / 409.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.2616, allocations: 203.9 kB / 409.5 MB, free: 448 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.2618, allocations: 183.1 kB / 409.7 MB, free: 256 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.159e-05/0.2618, allocations: 33.7 kB / 409.8 MB, free: 216 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.001e-05/0.2619, allocations: 140.7 kB / 409.9 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.848e-05/0.262, allocations: 79.11 kB / 410 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.913e-05/0.2621, allocations: 70.02 kB / 410 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.2622, allocations: 334.8 kB / 410.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.2625, allocations: 104.6 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.2628, allocations: 183.2 kB / 410.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005278/0.2633, allocations: 411.7 kB / 411.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.2633, allocations: 0 / 411.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006682/0.264, allocations: 434.2 kB / 411.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.19e-05/0.2641, allocations: 97.09 kB / 411.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2641, allocations: 3.938 kB / 411.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2641, allocations: 4 kB / 411.6 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001857/0.2643, allocations: 43.91 kB / 411.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.2643, allocations: 8.094 kB / 411.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.2645, allocations: 35.67 kB / 411.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.479e-05/0.2645, allocations: 16 kB / 411.7 MB, free: 14.14 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.0002353/0.2648, allocations: 236.8 kB / 411.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.56e-05/0.2648, allocations: 19.81 kB / 411.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.2649, allocations: 30.59 kB / 412 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2649, allocations: 4 kB / 412 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.2649, allocations: 0 / 412 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.2649, allocations: 3.984 kB / 412 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.2663, allocations: 0.9278 MB / 412.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2663, allocations: 4 kB / 412.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.2664, allocations: 19.98 kB / 412.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.2664, allocations: 192 / 412.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.2664, allocations: 12 kB / 412.9 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.2664, allocations: 15.81 kB / 412.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2664, allocations: 0 / 412.9 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008857/0.2673, allocations: 0.6165 MB / 413.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.279e-05/0.2674, allocations: 96.77 kB / 413.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.477e-05/0.2675, allocations: 23.98 kB / 413.7 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.2677, allocations: 19.98 kB / 413.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.601e-05/0.2678, allocations: 19.97 kB / 413.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.2679, allocations: 12 kB / 413.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.268, allocations: 135.2 kB / 413.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.268, allocations: 0 / 413.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.2683, allocations: 79.84 kB / 413.9 MB, free: 11.73 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.0001531/0.2685, allocations: 136.9 kB / 414.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008351/0.2693, allocations: 0.5396 MB / 414.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2693, allocations: 0 / 414.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004841/0.2698, allocations: 402.6 kB / 415 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007148/0.2706, allocations: 145.5 kB / 415.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009764/0.2715, allocations: 0.554 MB / 415.7 MB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.2719, allocations: 0.7406 MB / 416.4 MB, free: 9.109 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.92e-05/0.2719, allocations: 23.42 kB / 416.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of SimCode: time 4.3e-07/0.272, allocations: 4 kB / 416.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of Templates: time 0.005119/0.2771, allocations: 3.117 MB / 419.6 MB, free: 5.988 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/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_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches