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.001049/0.001049, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.00124/0.001241, allocations: 194.8 kB / 18.01 MB, free: 5.051 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.348/1.348, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2771, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00336/0.2804, allocations: 2.36 MB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2815, allocations: 0.6777 MB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.857e-05/0.2816, allocations: 4 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.2818, allocations: 31.66 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.916e-05/0.2819, allocations: 51.5 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002935/0.2822, allocations: 91.77 kB / 403.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.2825, allocations: 271 kB / 403.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.2828, allocations: 111 kB / 403.8 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.2829, allocations: 115.7 kB / 403.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.2831, allocations: 119.5 kB / 404.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.104e-05/0.2831, allocations: 20 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.518e-05/0.2832, allocations: 27.94 kB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.11e-05/0.2833, allocations: 51.83 kB / 404.2 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.2834, allocations: 127.3 kB / 404.3 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002925/0.2837, allocations: 273.9 kB / 404.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2837, allocations: 0 / 404.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2837, allocations: 4 kB / 404.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.2837, allocations: 0 / 404.5 MB, free: 4.473 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.0009088/0.2846, allocations: 0.6754 MB / 405.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2847, allocations: 12.03 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.752e-05/0.2847, allocations: 58.72 kB / 405.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.2848, allocations: 32.73 kB / 405.3 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.2851, allocations: 233.5 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.292e-05/0.2852, allocations: 50.27 kB / 405.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.2852, allocations: 20.36 kB / 405.6 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.2857, allocations: 256.1 kB / 405.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.2858, allocations: 0 / 405.9 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.2858, allocations: 4 kB / 405.9 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.2858, allocations: 8 kB / 405.9 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004637/0.2863, allocations: 204.3 kB / 406.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.2876, allocations: 0.764 MB / 406.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.2881, allocations: 295.2 kB / 407.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.2886, allocations: 230.3 kB / 407.4 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.2886, allocations: 0 / 407.4 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004997/0.2891, allocations: 316.9 kB / 407.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.955e-06/0.2891, allocations: 0 / 407.7 MB, free: 1.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001179/0.2903, allocations: 0.571 MB / 408.2 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.2904, allocations: 215.9 kB / 408.5 MB, free: 280 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.2906, allocations: 179.1 kB / 408.6 MB, free: 92 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.2906, allocations: 37.7 kB / 408.7 MB, free: 48 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2907, allocations: 128.9 kB / 408.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.526e-05/0.2908, allocations: 83.38 kB / 408.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.129e-05/0.2909, allocations: 66.03 kB / 408.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.291, allocations: 330.8 kB / 409.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002298/0.2913, allocations: 116.6 kB / 409.4 MB, free: 15.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.2915, allocations: 171.2 kB / 409.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.2921, allocations: 419.6 kB / 409.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.2921, allocations: 4 kB / 410 MB, free: 14.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006632/0.2927, allocations: 449 kB / 410.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/0.2928, allocations: 99.69 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2928, allocations: 3.984 kB / 410.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.2929, allocations: 4 kB / 410.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.293, allocations: 39.92 kB / 410.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.2931, allocations: 0 / 410.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001795/0.2932, allocations: 35.97 kB / 410.6 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.2933, allocations: 12 kB / 410.6 MB, free: 13.99 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.0002234/0.2935, allocations: 244.8 kB / 410.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.667e-05/0.2936, allocations: 27.8 kB / 410.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.251e-05/0.2936, allocations: 26.64 kB / 410.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.2936, allocations: 0 / 410.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.2936, allocations: 8.188 kB / 410.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2936, allocations: 0 / 410.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001402/0.2951, allocations: 0.9355 MB / 411.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2951, allocations: 0 / 411.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.2952, allocations: 23.98 kB / 411.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.2952, allocations: 8 kB / 411.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.2952, allocations: 15.92 kB / 411.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.2952, allocations: 0 / 411.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.2953, allocations: 4 kB / 411.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009531/0.2962, allocations: 0.6049 MB / 412.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.2963, allocations: 104.9 kB / 412.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.2964, allocations: 15.98 kB / 412.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.2966, allocations: 19.98 kB / 412.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.116e-05/0.2967, allocations: 27.97 kB / 412.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.2967, allocations: 19.91 kB / 412.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.2968, allocations: 127.2 kB / 412.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2968, allocations: 0 / 412.8 MB, free: 11.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.2972, allocations: 71.94 kB / 412.9 MB, free: 11.58 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.001278/0.2985, allocations: 1.18 MB / 414 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008687/0.2994, allocations: 0.5447 MB / 414.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2994, allocations: 0 / 414.6 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004907/0.2999, allocations: 398.8 kB / 415 MB, free: 9.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006966/0.3006, allocations: 153.5 kB / 415.1 MB, free: 9.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003643/0.3043, allocations: 2.93 MB / 418 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.3046, allocations: 0.7445 MB / 418.8 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001708/0.3048, allocations: 53.88 kB / 418.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.3049, allocations: 67.42 kB / 418.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3049, allocations: 0 / 418.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.3286, allocations: 6.518 MB / 425.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.593/7.922, allocations: 15.86 kB / 425.4 MB, free: 14.88 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