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.0009178/0.000918, allocations: 91.19 kB / 16.65 MB, free: 6.535 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.001038/0.001038, allocations: 176.5 kB / 17.56 MB, free: 6.18 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.364/1.364, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003543, allocations: 8 kB / 301.5 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1345, allocations: 50.42 MB / 351.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003163/0.1377, allocations: 2.047 MB / 354 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1392, allocations: 0.6663 MB / 354.7 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.1395, allocations: 3.938 kB / 354.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.1397, allocations: 23.78 kB / 354.7 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.1399, allocations: 55.56 kB / 354.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.1403, allocations: 67.92 kB / 354.8 MB, free: 500 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000374/0.1407, allocations: 243.1 kB / 355 MB, free: 256 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003017/0.141, allocations: 98.92 kB / 355.1 MB, free: 156 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003235/0.1414, allocations: 95.62 kB / 355.2 MB, free: 60 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002715/0.1417, allocations: 99.53 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.019e-05/0.1417, allocations: 15.94 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.667e-05/0.1418, allocations: 8 kB / 355.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.262e-05/0.1419, allocations: 39.84 kB / 355.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.1421, allocations: 129.1 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003074/0.1424, allocations: 259.3 kB / 355.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1424, allocations: 0 / 355.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1424, allocations: 4 kB / 355.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1424, allocations: 0 / 355.8 MB, free: 15.51 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.001158/0.1436, allocations: 0.6328 MB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.1436, allocations: 16.02 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.117e-05/0.1437, allocations: 54.73 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.723e-05/0.1438, allocations: 28.66 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.1442, allocations: 233.5 kB / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.095e-05/0.1443, allocations: 54.25 kB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.269e-05/0.1444, allocations: 16.38 kB / 356.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006496/0.145, allocations: 268.1 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.145, allocations: 0 / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1451, allocations: 4 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1451, allocations: 11.92 kB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005454/0.1456, allocations: 220.1 kB / 357.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.1471, allocations: 0.768 MB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006093/0.1477, allocations: 307.2 kB / 358.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000442/0.1482, allocations: 236 kB / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.1482, allocations: 0 / 358.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005378/0.1487, allocations: 320.3 kB / 358.9 MB, free: 12.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.1488, allocations: 3.938 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001252/0.15, allocations: 0.5986 MB / 359.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.1502, allocations: 207.9 kB / 359.7 MB, free: 11.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.1504, allocations: 178.3 kB / 359.9 MB, free: 11.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.167e-05/0.1504, allocations: 41.69 kB / 359.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1505, allocations: 132.8 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.317e-05/0.1506, allocations: 75 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.474e-05/0.1507, allocations: 45.69 kB / 360.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1508, allocations: 334.8 kB / 360.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.1511, allocations: 116.6 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/0.1514, allocations: 179.2 kB / 360.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005891/0.152, allocations: 421.4 kB / 361.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.152, allocations: 0 / 361.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007843/0.1528, allocations: 451.9 kB / 361.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.772e-05/0.1529, allocations: 101 kB / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.1529, allocations: 4 kB / 361.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1529, allocations: 0 / 361.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001965/0.1531, allocations: 35.92 kB / 361.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.1532, allocations: 7.938 kB / 361.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.1534, allocations: 47.77 kB / 361.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.1534, allocations: 12 kB / 361.8 MB, free: 8.992 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.0002561/0.1537, allocations: 235.8 kB / 362.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.812e-05/0.1537, allocations: 31.66 kB / 362.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.833e-05/0.1538, allocations: 30.58 kB / 362.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.1538, allocations: 0 / 362.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1538, allocations: 4 kB / 362.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1538, allocations: 0 / 362.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/0.1553, allocations: 0.9422 MB / 363.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1553, allocations: 4 kB / 363.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001097/0.1554, allocations: 24.02 kB / 363.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1555, allocations: 0 / 363.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.13e-05/0.1555, allocations: 15.98 kB / 363.1 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1555, allocations: 3.938 kB / 363.1 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1555, allocations: 3.984 kB / 363.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.1565, allocations: 0.6222 MB / 363.8 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.718e-05/0.1566, allocations: 100.8 kB / 363.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.347e-05/0.1567, allocations: 12 kB / 363.9 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.1569, allocations: 35.97 kB / 363.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-05/0.157, allocations: 20.14 kB / 363.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.909e-05/0.1571, allocations: 11.94 kB / 363.9 MB, free: 6.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00012/0.1572, allocations: 135.2 kB / 364.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1572, allocations: 0 / 364.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003656/0.1576, allocations: 75.84 kB / 364.1 MB, free: 6.555 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.001388/0.159, allocations: 1.206 MB / 365.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008772/0.1599, allocations: 0.5595 MB / 365.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.1599, allocations: 480 / 365.9 MB, free: 4.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005347/0.1604, allocations: 418.7 kB / 366.3 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007504/0.1612, allocations: 132.9 kB / 366.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.1653, allocations: 3.015 MB / 369.5 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005262/0.1658, allocations: 0.7409 MB / 370.2 MB, free: 244 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001915/0.166, allocations: 53.89 kB / 370.3 MB, free: 184 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.1662, allocations: 63.42 kB / 370.3 MB, free: 124 kB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1662, allocations: 0 / 370.3 MB, free: 124 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2553/0.4215, allocations: 6.031 MB / 376.3 MB, free: 23.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.4217, allocations: 206.3 kB / 376.5 MB, free: 23.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.419, allocations: 0.9375 kB / 376.5 MB, free: 23.34 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 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.mat","/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