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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001254/0.001254, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2849, allocations: 50.55 MB / 408.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003885/0.2888, allocations: 2.371 MB / 411.1 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.2903, allocations: 0.74 MB / 411.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.2905, allocations: 7.938 kB / 411.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.2907, allocations: 27.72 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001559/0.2909, allocations: 59.5 kB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.2914, allocations: 111.7 kB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000392/0.2918, allocations: 267 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.292, allocations: 119 kB / 412.5 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.2923, allocations: 115.6 kB / 412.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.2925, allocations: 111.6 kB / 412.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.728e-05/0.2925, allocations: 20 kB / 412.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.119e-05/0.2926, allocations: 28 kB / 412.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.489e-05/0.2927, allocations: 59.7 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001392/0.2929, allocations: 119.5 kB / 412.9 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003726/0.2932, allocations: 286.8 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2932, allocations: 0 / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2933, allocations: 0 / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.2933, allocations: 4 kB / 413.2 MB, free: 13.24 MB / 334.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.001036/0.2943, allocations: 0.6793 MB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2944, allocations: 8.031 kB / 413.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.027e-05/0.2944, allocations: 58.72 kB / 413.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.2946, allocations: 36.75 kB / 414 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.295, allocations: 247.9 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.851e-05/0.2951, allocations: 58.03 kB / 414.3 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.366e-05/0.2951, allocations: 16.38 kB / 414.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005396/0.2957, allocations: 256.1 kB / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2957, allocations: 0 / 414.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.82e-05/0.2957, allocations: 11.98 kB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.2957, allocations: 4 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004786/0.2962, allocations: 204.2 kB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.2975, allocations: 0.7565 MB / 415.5 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006051/0.2982, allocations: 302.6 kB / 415.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004397/0.2986, allocations: 217 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.2986, allocations: 4 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005434/0.2992, allocations: 328.2 kB / 416.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.493e-06/0.2992, allocations: 0 / 416.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001186/0.3004, allocations: 0.5672 MB / 416.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/0.3005, allocations: 199.9 kB / 417.1 MB, free: 9.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001672/0.3007, allocations: 188.2 kB / 417.3 MB, free: 8.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.3008, allocations: 45.62 kB / 417.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.672e-05/0.3009, allocations: 132.9 kB / 417.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.314e-05/0.3009, allocations: 83.36 kB / 417.5 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.3011, allocations: 74.02 kB / 417.6 MB, free: 8.492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3012, allocations: 338.8 kB / 417.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.3015, allocations: 112.6 kB / 418 MB, free: 8.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002819/0.3018, allocations: 175.3 kB / 418.2 MB, free: 7.848 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005164/0.3023, allocations: 401.5 kB / 418.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3023, allocations: 0 / 418.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006767/0.303, allocations: 453.4 kB / 419.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.334e-05/0.3031, allocations: 93.22 kB / 419.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3031, allocations: 4 kB / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.3031, allocations: 8.031 kB / 419.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3033, allocations: 39.92 kB / 419.2 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.3033, allocations: 15.91 kB / 419.2 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.3035, allocations: 31.84 kB / 419.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.3035, allocations: 12 kB / 419.3 MB, free: 6.727 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.0002255/0.3038, allocations: 239.7 kB / 419.5 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.63e-05/0.3038, allocations: 31.8 kB / 419.5 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.3039, allocations: 26.64 kB / 419.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3039, allocations: 0 / 419.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3039, allocations: 0 / 419.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.3039, allocations: 8 kB / 419.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.3054, allocations: 0.93 MB / 420.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3054, allocations: 0 / 420.5 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.3055, allocations: 27.92 kB / 420.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3055, allocations: 4 kB / 420.5 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.3056, allocations: 15.97 kB / 420.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3056, allocations: 0 / 420.5 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3056, allocations: 4.031 kB / 420.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009656/0.3066, allocations: 0.6051 MB / 421.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.039e-05/0.3066, allocations: 108.9 kB / 421.2 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.3067, allocations: 15.94 kB / 421.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.3069, allocations: 23.97 kB / 421.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.307, allocations: 23.92 kB / 421.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.3071, allocations: 15.92 kB / 421.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.3072, allocations: 131.2 kB / 421.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3072, allocations: 0 / 421.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003422/0.3075, allocations: 72 kB / 421.5 MB, free: 4.32 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.001224/0.3088, allocations: 1.191 MB / 422.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008526/0.3096, allocations: 0.5447 MB / 423.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3097, allocations: 4.188 kB / 423.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004976/0.3102, allocations: 402.6 kB / 423.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000723/0.3109, allocations: 140 kB / 423.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/0.3147, allocations: 2.93 MB / 426.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.3151, allocations: 0.7484 MB / 427.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.3153, allocations: 53.89 kB / 427.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3154, allocations: 67.41 kB / 427.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.3154, allocations: 0 / 427.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.3386, allocations: 6.564 MB / 434.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.573/7.912, allocations: 4 kB / 434.2 MB, free: 7.57 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches