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.001196/0.001196, allocations: 105.8 kB / 16.92 MB, free: 5.734 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.001136/0.001137, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.624/1.624, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 48.27 kB / 300.7 MB, free: 5.801 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1143, allocations: 49.43 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003878/0.1183, allocations: 2.353 MB / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001242/0.1195, allocations: 0.6699 MB / 353.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.1197, allocations: 7.938 kB / 353.2 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.1199, allocations: 31.64 kB / 353.2 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.12, allocations: 55.5 kB / 353.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.1204, allocations: 91.75 kB / 353.4 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003807/0.1207, allocations: 259.1 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/0.121, allocations: 123.3 kB / 353.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002084/0.1213, allocations: 111.7 kB / 353.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1215, allocations: 115.5 kB / 354 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.465e-05/0.1215, allocations: 20 kB / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.926e-05/0.1216, allocations: 24 kB / 354 MB, free: 484 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.99e-05/0.1216, allocations: 51.84 kB / 354.1 MB, free: 432 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.1218, allocations: 127.4 kB / 354.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.1221, allocations: 275.3 kB / 354.4 MB, free: 28 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1221, allocations: 0 / 354.4 MB, free: 28 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1221, allocations: 4 kB / 354.5 MB, free: 24 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1221, allocations: 0 / 354.5 MB, free: 24 kB / 286.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.001043/0.1232, allocations: 0.6677 MB / 355.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.1232, allocations: 8.031 kB / 355.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.87e-05/0.1233, allocations: 54.73 kB / 355.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.218e-05/0.1234, allocations: 32.66 kB / 355.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.1237, allocations: 229.8 kB / 355.4 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-05/0.1237, allocations: 54.25 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.1238, allocations: 16.38 kB / 355.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006169/0.1244, allocations: 260 kB / 355.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1244, allocations: 7.922 kB / 355.8 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.1245, allocations: 12 kB / 355.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.1245, allocations: 8 kB / 355.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005074/0.125, allocations: 200.1 kB / 356 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.1263, allocations: 0.7718 MB / 356.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008055/0.1271, allocations: 295.2 kB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006896/0.1278, allocations: 221 kB / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.1279, allocations: 0 / 357.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006717/0.1286, allocations: 316.8 kB / 357.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.943e-06/0.1286, allocations: 0 / 357.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.00174/0.1303, allocations: 0.5825 MB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1305, allocations: 199.9 kB / 358.3 MB, free: 11.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.1306, allocations: 187 kB / 358.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.1307, allocations: 33.7 kB / 358.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.792e-05/0.1308, allocations: 140.7 kB / 358.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.914e-05/0.1308, allocations: 79 kB / 358.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.131, allocations: 70.02 kB / 358.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1311, allocations: 330.8 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/0.1314, allocations: 108.6 kB / 359.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003561/0.1318, allocations: 175.3 kB / 359.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008826/0.1327, allocations: 414.9 kB / 359.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1327, allocations: 4 kB / 359.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00117/0.1339, allocations: 431.5 kB / 360.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.134, allocations: 101.1 kB / 360.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.134, allocations: 4.188 kB / 360.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.134, allocations: 7.938 kB / 360.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002986/0.1344, allocations: 47.84 kB / 360.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1344, allocations: 0 / 360.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.1347, allocations: 35.77 kB / 360.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.1348, allocations: 8 kB / 360.5 MB, free: 9.559 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.0003279/0.1351, allocations: 244.8 kB / 360.7 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.505e-05/0.1352, allocations: 27.66 kB / 360.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.095e-05/0.1353, allocations: 22.66 kB / 360.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1353, allocations: 7.984 kB / 360.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.1353, allocations: 0 / 360.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.485e-06/0.1353, allocations: 3.984 kB / 360.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.1376, allocations: 0.9278 MB / 361.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.1376, allocations: 8.031 kB / 361.7 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.1378, allocations: 23.92 kB / 361.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.1378, allocations: 0 / 361.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.1379, allocations: 8 kB / 361.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-06/0.1379, allocations: 4 kB / 361.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1379, allocations: 0 / 361.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.1395, allocations: 0.6203 MB / 362.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.576e-05/0.1396, allocations: 92.86 kB / 362.5 MB, free: 7.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.026e-05/0.1397, allocations: 19.98 kB / 362.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002891/0.14, allocations: 19.98 kB / 362.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.1401, allocations: 23.97 kB / 362.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.1401, allocations: 15.94 kB / 362.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001145/0.1402, allocations: 135.2 kB / 362.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1402, allocations: 0 / 362.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.1406, allocations: 79.84 kB / 362.7 MB, free: 7.141 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.001255/0.1419, allocations: 1.169 MB / 363.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008828/0.1428, allocations: 0.5831 MB / 364.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.1428, allocations: 0 / 364.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005092/0.1433, allocations: 405.5 kB / 364.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000726/0.144, allocations: 161.6 kB / 365.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.1478, allocations: 2.903 MB / 368 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/0.1481, allocations: 0.7406 MB / 368.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001723/0.1483, allocations: 53.89 kB / 368.7 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.1484, allocations: 67.41 kB / 368.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1484, allocations: 0 / 368.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1725/0.3209, allocations: 6.434 MB / 375.2 MB, free: 25.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.342, allocations: 8.031 kB / 375.3 MB, free: 25.77 MB / 302.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