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.001851/0.001851, allocations: 109.4 kB / 18.34 MB, free: 4.832 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.001977/0.001976, allocations: 192.1 kB / 19.28 MB, free: 3.898 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.722/1.722, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.00144/0.00144, allocations: 55.89 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.12, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004085/0.1241, allocations: 2.333 MB / 331 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.1256, allocations: 0.7215 MB / 331.8 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.1258, allocations: 3.938 kB / 331.8 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.126, allocations: 31.72 kB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001118/0.1261, allocations: 51.5 kB / 331.8 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.1265, allocations: 87.77 kB / 331.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003374/0.1268, allocations: 274.9 kB / 332.2 MB, free: 240 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002529/0.1271, allocations: 107 kB / 332.3 MB, free: 132 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001912/0.1273, allocations: 115.6 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.1275, allocations: 119.6 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.344e-05/0.1276, allocations: 20 kB / 332.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.949e-05/0.1276, allocations: 24 kB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.1277, allocations: 55.78 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001551/0.1278, allocations: 119.4 kB / 332.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003331/0.1282, allocations: 278.9 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1282, allocations: 0 / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1282, allocations: 0 / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1282, allocations: 4 kB / 333 MB, free: 15.41 MB / 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.001114/0.1293, allocations: 0.6677 MB / 333.7 MB, free: 14.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.1294, allocations: 12.03 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.035e-05/0.1295, allocations: 24.66 kB / 333.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.1299, allocations: 240.6 kB / 334 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.051e-05/0.13, allocations: 46.27 kB / 334 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/0.13, allocations: 20.38 kB / 334 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005985/0.1306, allocations: 268 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1307, allocations: 0 / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.1307, allocations: 8 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.1307, allocations: 4 kB / 334.3 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005062/0.1312, allocations: 204.2 kB / 334.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.1326, allocations: 0.7638 MB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.1332, allocations: 295.2 kB / 335.6 MB, free: 12.69 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004399/0.1337, allocations: 237 kB / 335.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.1337, allocations: 3.938 kB / 335.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005139/0.1342, allocations: 316.3 kB / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.913e-06/0.1343, allocations: 0 / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001201/0.1355, allocations: 0.5669 MB / 336.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.1356, allocations: 199.9 kB / 336.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1358, allocations: 183.1 kB / 337 MB, free: 11.1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.1358, allocations: 45.69 kB / 337.1 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.454e-05/0.1359, allocations: 128.7 kB / 337.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.523e-05/0.136, allocations: 75.08 kB / 337.3 MB, free: 10.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1361, allocations: 70.02 kB / 337.4 MB, free: 10.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1363, allocations: 338.8 kB / 337.7 MB, free: 10.43 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.1365, allocations: 108.6 kB / 337.8 MB, free: 10.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.1368, allocations: 171.1 kB / 338 MB, free: 10.13 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005692/0.1374, allocations: 409.6 kB / 338.4 MB, free: 9.68 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1374, allocations: 3.938 kB / 338.4 MB, free: 9.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007663/0.1382, allocations: 446.2 kB / 338.8 MB, free: 9.215 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.411e-05/0.1383, allocations: 97.09 kB / 338.9 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1383, allocations: 7.938 kB / 338.9 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.1383, allocations: 0 / 338.9 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001946/0.1385, allocations: 35.92 kB / 338.9 MB, free: 9.059 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.1386, allocations: 7.938 kB / 338.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.1388, allocations: 39.67 kB / 339 MB, free: 9.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.88e-05/0.1388, allocations: 16.03 kB / 339 MB, free: 8.996 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.000348/0.1392, allocations: 235.8 kB / 339.2 MB, free: 8.742 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.515e-05/0.1392, allocations: 27.72 kB / 339.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.1393, allocations: 30.58 kB / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1393, allocations: 0 / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1393, allocations: 0 / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1393, allocations: 0 / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.1408, allocations: 0.9358 MB / 340.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1409, allocations: 0 / 340.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.141, allocations: 27.95 kB / 340.2 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.141, allocations: 0 / 340.2 MB, free: 7.648 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.141, allocations: 15.98 kB / 340.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.141, allocations: 0 / 340.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.141, allocations: 0 / 340.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009552/0.142, allocations: 0.6086 MB / 340.9 MB, free: 6.992 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.944e-05/0.1421, allocations: 96.84 kB / 341 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.238e-05/0.1422, allocations: 19.98 kB / 341 MB, free: 6.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.1424, allocations: 23.97 kB / 341 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.1425, allocations: 23.92 kB / 341 MB, free: 6.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/0.1426, allocations: 15.98 kB / 341 MB, free: 6.797 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001332/0.1427, allocations: 132.2 kB / 341.2 MB, free: 6.668 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1427, allocations: 0 / 341.2 MB, free: 6.668 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004307/0.1432, allocations: 79.84 kB / 341.3 MB, free: 6.59 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.0002199/0.1434, allocations: 133 kB / 341.4 MB, free: 6.445 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.1446, allocations: 0.542 MB / 341.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1446, allocations: 0 / 341.9 MB, free: 5.867 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006221/0.1452, allocations: 402.6 kB / 342.3 MB, free: 5.449 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000743/0.146, allocations: 150.3 kB / 342.5 MB, free: 5.305 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.1472, allocations: 0.5211 MB / 343 MB, free: 4.758 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005075/0.1477, allocations: 0.7522 MB / 343.7 MB, free: 3.98 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000192/0.1479, allocations: 53.88 kB / 343.8 MB, free: 3.93 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.392e-05/0.148, allocations: 23.44 kB / 343.8 MB, free: 3.906 MB / 286.1 MB Notification: Performance of SimCode: time 1.052e-06/0.148, allocations: 0 / 343.8 MB, free: 3.906 MB / 286.1 MB Notification: Performance of Templates: time 0.01031/0.1583, allocations: 4.248 MB / 348.1 MB, free: 15.67 MB / 302.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 -s gbode -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/jenkins1/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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