Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.00138/0.00138, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.605/1.605, allocations: 205.1 MB / 223.9 MB, free: 12.46 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 55.92 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1316, allocations: 46.64 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004192/0.1358, allocations: 2.375 MB / 329 MB, free: 2.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.1373, allocations: 0.7138 MB / 329.7 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.1375, allocations: 4 kB / 329.7 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.1377, allocations: 23.77 kB / 329.7 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.1378, allocations: 39.64 kB / 329.8 MB, free: 1.711 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.1382, allocations: 79.86 kB / 329.8 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003094/0.1385, allocations: 254.9 kB / 330.1 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002594/0.1387, allocations: 90.95 kB / 330.2 MB, free: 1.297 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002295/0.139, allocations: 111.6 kB / 330.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.1392, allocations: 103.5 kB / 330.4 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.82e-05/0.1392, allocations: 20 kB / 330.4 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.028e-05/0.1393, allocations: 12 kB / 330.4 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.95e-05/0.1394, allocations: 55.81 kB / 330.5 MB, free: 1 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001633/0.1395, allocations: 115.3 kB / 330.6 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.1399, allocations: 263.4 kB / 330.8 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.1399, allocations: 4 kB / 330.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.1399, allocations: 0 / 330.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.1399, allocations: 0 / 330.8 MB, free: 0.625 MB / 270.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.001223/0.1411, allocations: 0.6753 MB / 331.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.1412, allocations: 12.03 kB / 331.5 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.262e-05/0.1413, allocations: 28.64 kB / 331.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.1416, allocations: 236.6 kB / 331.8 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.141e-05/0.1417, allocations: 54.25 kB / 331.8 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.315e-05/0.1418, allocations: 16.38 kB / 331.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006009/0.1424, allocations: 264.3 kB / 332.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.1424, allocations: 0 / 332.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.942e-05/0.1424, allocations: 8 kB / 332.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1424, allocations: 4 kB / 332.1 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004741/0.1429, allocations: 204.2 kB / 332.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.1442, allocations: 0.7639 MB / 333.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005753/0.1448, allocations: 291.2 kB / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000416/0.1453, allocations: 225 kB / 333.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.1453, allocations: 3.938 kB / 333.6 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005277/0.1458, allocations: 320.3 kB / 333.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.292e-06/0.1458, allocations: 0 / 333.9 MB, free: 13.33 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.00122/0.1471, allocations: 0.5708 MB / 334.5 MB, free: 12.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/0.1472, allocations: 203.9 kB / 334.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.1474, allocations: 175.2 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1474, allocations: 41.7 kB / 334.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1476, allocations: 132.7 kB / 335 MB, free: 12.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.362e-05/0.1476, allocations: 75.09 kB / 335.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.341e-05/0.1477, allocations: 62.03 kB / 335.2 MB, free: 12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1479, allocations: 338.8 kB / 335.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000256/0.1481, allocations: 116.6 kB / 335.6 MB, free: 11.54 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.1484, allocations: 167.1 kB / 335.8 MB, free: 11.36 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005428/0.149, allocations: 413.6 kB / 336.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.149, allocations: 0 / 336.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006855/0.1497, allocations: 450.1 kB / 336.6 MB, free: 10.44 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.036e-05/0.1498, allocations: 93.09 kB / 336.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1498, allocations: 7.938 kB / 336.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.1498, allocations: 7.984 kB / 336.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002001/0.15, allocations: 31.92 kB / 336.7 MB, free: 10.29 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.15, allocations: 11.92 kB / 336.8 MB, free: 10.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.1502, allocations: 43.83 kB / 336.8 MB, free: 10.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.1503, allocations: 8 kB / 336.8 MB, free: 10.22 MB / 286.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.0002588/0.1506, allocations: 239.8 kB / 337 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.896e-05/0.1506, allocations: 27.72 kB / 337.1 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.974e-05/0.1507, allocations: 30.58 kB / 337.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1507, allocations: 0 / 337.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.1507, allocations: 4 kB / 337.1 MB, free: 9.898 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1507, allocations: 3.938 kB / 337.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.1522, allocations: 0.928 MB / 338 MB, free: 8.895 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.1522, allocations: 4.188 kB / 338 MB, free: 8.891 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.1523, allocations: 23.92 kB / 338.1 MB, free: 8.867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.1523, allocations: 7.938 kB / 338.1 MB, free: 8.859 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.1524, allocations: 11.98 kB / 338.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1524, allocations: 0 / 338.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1524, allocations: 4.031 kB / 338.1 MB, free: 8.844 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009159/0.1533, allocations: 0.6096 MB / 338.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.265e-05/0.1534, allocations: 100.9 kB / 338.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-05/0.1535, allocations: 15.98 kB / 338.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.1537, allocations: 19.98 kB / 338.8 MB, free: 8.051 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-05/0.1538, allocations: 27.91 kB / 338.9 MB, free: 8.023 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.771e-05/0.1538, allocations: 11.98 kB / 338.9 MB, free: 8.012 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.154, allocations: 131.2 kB / 339 MB, free: 7.883 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.154, allocations: 0 / 339 MB, free: 7.883 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003474/0.1543, allocations: 75.84 kB / 339.1 MB, free: 7.809 MB / 286.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.0001972/0.1545, allocations: 129 kB / 339.2 MB, free: 7.668 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008958/0.1554, allocations: 0.5487 MB / 339.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1555, allocations: 0 / 339.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000492/0.156, allocations: 402.6 kB / 340.1 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006903/0.1567, allocations: 128.5 kB / 340.3 MB, free: 6.539 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.1578, allocations: 0.5932 MB / 340.9 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.1582, allocations: 0.7485 MB / 341.6 MB, free: 5.148 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.1584, allocations: 53.88 kB / 341.7 MB, free: 5.098 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.578e-05/0.1584, allocations: 27.44 kB / 341.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1584, allocations: 0 / 341.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of Templates: time 0.007705/0.1662, allocations: 4.009 MB / 345.7 MB, free: 1.074 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches