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.001703/0.001703, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002646/0.002646, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09697/0.09826, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003807/0.1021, allocations: 2.374 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.1037, allocations: 0.74 MB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.1039, allocations: 7.938 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001864/0.1041, allocations: 27.72 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001666/0.1043, allocations: 59.48 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004109/0.1047, allocations: 107.7 kB / 360.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.1051, allocations: 263 kB / 361.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002178/0.1053, allocations: 123 kB / 361.3 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.1056, allocations: 119.6 kB / 361.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.1058, allocations: 111.6 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.878e-05/0.1058, allocations: 27.94 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.659e-05/0.1059, allocations: 24 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.335e-05/0.106, allocations: 51.84 kB / 361.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.1061, allocations: 127.3 kB / 361.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.1065, allocations: 275.4 kB / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1065, allocations: 4 kB / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1065, allocations: 0 / 362 MB, free: 9.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1065, allocations: 0 / 362 MB, free: 9.586 MB / 302.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.001114/0.1076, allocations: 0.6755 MB / 362.7 MB, free: 8.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.1077, allocations: 12.03 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.236e-05/0.1078, allocations: 54.73 kB / 362.7 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.1079, allocations: 40.64 kB / 362.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.1083, allocations: 235.9 kB / 363 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.29e-05/0.1084, allocations: 62.19 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.1084, allocations: 16.38 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005963/0.1091, allocations: 263.8 kB / 363.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.1091, allocations: 4 kB / 363.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.469e-05/0.1091, allocations: 8 kB / 363.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1091, allocations: 4 kB / 363.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005148/0.1096, allocations: 200.3 kB / 363.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.111, allocations: 0.7718 MB / 364.3 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005931/0.1116, allocations: 294.8 kB / 364.6 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.112, allocations: 230.6 kB / 364.8 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.112, allocations: 4 kB / 364.8 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004833/0.1125, allocations: 316.3 kB / 365.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.704e-06/0.1125, allocations: 0 / 365.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001184/0.1137, allocations: 0.5708 MB / 365.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.1139, allocations: 203.9 kB / 365.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.114, allocations: 188.2 kB / 366.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.1141, allocations: 41.7 kB / 366.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.327e-05/0.1142, allocations: 128.8 kB / 366.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.969e-05/0.1143, allocations: 83 kB / 366.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.536e-05/0.1144, allocations: 66.02 kB / 366.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1145, allocations: 334.8 kB / 366.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.1147, allocations: 104.6 kB / 366.8 MB, free: 4.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.115, allocations: 171.3 kB / 367 MB, free: 4.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005365/0.1155, allocations: 417.3 kB / 367.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.1156, allocations: 4 kB / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006977/0.1163, allocations: 449.8 kB / 367.9 MB, free: 3.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.746e-05/0.1163, allocations: 101 kB / 368 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.1164, allocations: 0 / 368 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1164, allocations: 4 kB / 368 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1166, allocations: 35.92 kB / 368 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.1166, allocations: 0 / 368 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.1168, allocations: 43.67 kB / 368 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.1168, allocations: 8 kB / 368 MB, free: 3.086 MB / 302.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.0002299/0.117, allocations: 244.9 kB / 368.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.503e-05/0.1171, allocations: 23.75 kB / 368.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.197e-05/0.1172, allocations: 26.64 kB / 368.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1172, allocations: 4 kB / 368.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1172, allocations: 0 / 368.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1172, allocations: 0 / 368.3 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.1186, allocations: 0.9474 MB / 369.3 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1186, allocations: 0 / 369.3 MB, free: 1.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.1187, allocations: 19.98 kB / 369.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1187, allocations: 0 / 369.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.1188, allocations: 11.98 kB / 369.3 MB, free: 1.723 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.1188, allocations: 4 kB / 369.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.1188, allocations: 0 / 369.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008976/0.1197, allocations: 0.6167 MB / 369.9 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.104e-05/0.1198, allocations: 96.84 kB / 370 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.1198, allocations: 24 kB / 370.1 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.1201, allocations: 23.97 kB / 370.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.1202, allocations: 15.98 kB / 370.1 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.043e-05/0.1202, allocations: 20.11 kB / 370.1 MB, free: 0.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.1203, allocations: 127.2 kB / 370.2 MB, free: 0.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1203, allocations: 3.938 kB / 370.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003438/0.1207, allocations: 79.84 kB / 370.3 MB, free: 0.668 MB / 302.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.1668/0.2875, allocations: 1.175 MB / 371.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001149/0.2887, allocations: 0.5589 MB / 372.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.2887, allocations: 3.062 kB / 372.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005435/0.2893, allocations: 399.2 kB / 372.4 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008339/0.2901, allocations: 150.9 kB / 372.6 MB, free: 19.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.2939, allocations: 2.936 MB / 375.5 MB, free: 17.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.2941, allocations: 0.7433 MB / 376.3 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.2943, allocations: 51.91 kB / 376.3 MB, free: 17.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.2944, allocations: 67.86 kB / 376.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2944, allocations: 0 / 376.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.3176, allocations: 6.475 MB / 382.9 MB, free: 16.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/7.923, allocations: 13.91 kB / 382.9 MB, free: 16.14 MB / 302.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