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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001447/0.001447, allocations: 112.2 kB / 17.06 MB, free: 5.992 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.0017/0.0017, allocations: 196 kB / 18.01 MB, free: 5.074 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.441/1.441, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2684, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004282/0.2727, allocations: 2.365 MB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.2741, allocations: 0.6661 MB / 403.3 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.2742, allocations: 7.938 kB / 403.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001651/0.2744, allocations: 27.66 kB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.2746, allocations: 51.5 kB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.2749, allocations: 91.77 kB / 403.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.2753, allocations: 263.1 kB / 403.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.2756, allocations: 119 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002075/0.2758, allocations: 115.6 kB / 403.9 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.276, allocations: 119.5 kB / 404.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.2761, allocations: 24 kB / 404.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.415e-05/0.2761, allocations: 20 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.049e-05/0.2762, allocations: 51.84 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.2764, allocations: 123.4 kB / 404.3 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003566/0.2767, allocations: 277.9 kB / 404.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2768, allocations: 3.938 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2768, allocations: 0 / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2768, allocations: 4 kB / 404.5 MB, free: 4.484 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.001101/0.2779, allocations: 0.6754 MB / 405.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.2779, allocations: 8.031 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.245e-05/0.278, allocations: 58.72 kB / 405.3 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.2781, allocations: 32.8 kB / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00037/0.2785, allocations: 237.5 kB / 405.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.297e-05/0.2786, allocations: 42.27 kB / 405.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.657e-05/0.2786, allocations: 24.38 kB / 405.6 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.2792, allocations: 256 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.2792, allocations: 0 / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.2792, allocations: 8 kB / 405.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2792, allocations: 8 kB / 405.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005005/0.2797, allocations: 208.3 kB / 406.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.2811, allocations: 0.7601 MB / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/0.2817, allocations: 295.2 kB / 407.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004612/0.2822, allocations: 222.5 kB / 407.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.2822, allocations: 4 kB / 407.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005216/0.2827, allocations: 320.7 kB / 407.7 MB, free: 1.129 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.774e-06/0.2827, allocations: 4 kB / 407.7 MB, free: 1.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001182/0.2839, allocations: 0.5672 MB / 408.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.2841, allocations: 203.9 kB / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/0.2843, allocations: 187 kB / 408.6 MB, free: 108 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.2843, allocations: 37.7 kB / 408.7 MB, free: 64 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.2845, allocations: 136.8 kB / 408.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.2846, allocations: 83.38 kB / 408.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.2847, allocations: 62.03 kB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.2848, allocations: 338.8 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.2851, allocations: 112.6 kB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002808/0.2854, allocations: 167.3 kB / 409.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005639/0.2859, allocations: 415.1 kB / 409.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.286, allocations: 0 / 409.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007426/0.2867, allocations: 453.2 kB / 410.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.021e-05/0.2868, allocations: 101 kB / 410.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2868, allocations: 4 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.2868, allocations: 0 / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.287, allocations: 39.91 kB / 410.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.2871, allocations: 4 kB / 410.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.2872, allocations: 39.97 kB / 410.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.2873, allocations: 8 kB / 410.6 MB, free: 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.0002388/0.2875, allocations: 244.8 kB / 410.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.769e-05/0.2876, allocations: 31.8 kB / 410.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.2876, allocations: 18.66 kB / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2876, allocations: 0 / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2876, allocations: 4 kB / 410.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2876, allocations: 3.984 kB / 410.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.2891, allocations: 0.9348 MB / 411.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.2891, allocations: 4.031 kB / 411.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.2892, allocations: 31.86 kB / 411.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2892, allocations: 0 / 411.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.806e-05/0.2893, allocations: 12 kB / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2893, allocations: 0 / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.2893, allocations: 3.984 kB / 411.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009733/0.2903, allocations: 0.6165 MB / 412.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.795e-05/0.2903, allocations: 96.91 kB / 412.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/0.2904, allocations: 19.98 kB / 412.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.2906, allocations: 19.98 kB / 412.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/0.2907, allocations: 27.97 kB / 412.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.2907, allocations: 15.94 kB / 412.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001238/0.2909, allocations: 127.2 kB / 412.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2909, allocations: 0 / 412.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003312/0.2912, allocations: 71.94 kB / 412.8 MB, free: 11.59 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.001383/0.2926, allocations: 1.184 MB / 414 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009096/0.2935, allocations: 0.5412 MB / 414.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2935, allocations: 0 / 414.6 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005676/0.2941, allocations: 398.6 kB / 415 MB, free: 9.375 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007197/0.2948, allocations: 155 kB / 415.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00406/0.2989, allocations: 2.926 MB / 418 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.2993, allocations: 0.7406 MB / 418.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001569/0.2995, allocations: 49.89 kB / 418.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.2996, allocations: 71.41 kB / 418.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2996, allocations: 4 kB / 418.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.329, allocations: 6.527 MB / 425.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.363/8.692, allocations: 11.8 kB / 425.4 MB, free: 14.9 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > 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.csv","/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